text: Cody
  
  # Problem 1089. Create a random vector of integers with given sum
  
  Solution 177453
  
  Submitted on 14 Dec 2012 by Christopher
  This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
  
  ### Test Suite
  
  Test Status Code Input and Output
  1   Pass
  %% nocheat = isempty(regexp(evalc('type random_sequence'),'([^f]eval|regexprep|inline|str2func)')); m = 26; s = 5000; y = random_sequence(m,s); assert(isequal(sum(y),s) && abs(mean(y)-m/2)<m*sqrt(m/s)+1/2 && isequal(y,round(y)) && abs(std(y)-m/sqrt(12))*sqrt(s)/m<2.5 && nocheat)
  
  2   Pass
  %% nocheat = isempty(regexp(evalc('type random_sequence'),'([^f]eval|regexprep|inline|str2func)')); m = 2; s = 1000; y = random_sequence(m,s); assert(isequal(sum(y),s) && abs(mean(y)-m/2)<m*sqrt(m/s)+1/2 && isequal(y,round(y)) && abs(std(y)-m/sqrt(12))*sqrt(s)/m<2.5 && nocheat)
  
  3   Pass
  %% nocheat = isempty(regexp(evalc('type random_sequence'),'([^f]eval|regexprep|inline|str2func)')); m = 1000; s = 100000; y = random_sequence(m,s); assert(isequal(sum(y),s) && abs(mean(y)-m/2)<m*sqrt(m/s)+1/2 && isequal(y,round(y)) && abs(std(y)-m/sqrt(12))*sqrt(s^1/m^3)<1 && nocheat)
explanation: The document describes a problem from a coding challenge platform, specifically Problem 1089, which involves creating a random vector of integers with a given sum. The document includes a test suite with three test cases that validate the solution. Each test case checks various properties of the generated vector, such as the sum, mean, and standard deviation.
  
  The document does not contain a direct math question or a question and answer. It is primarily a code snippet and test suite.
distilabel_metadata.content: Evaluate the user given text extract and determine if it contains a math question and optionally and answer to this question.
  
  Output rules:
  
  1. Briefly describe the document and mention if it contains a question or a question and answer.
  2. Finalize the output with: Label: no-question,question,question-and-answer,multiple-question,multiple-question-and-answer
distilabel_metadata.role: system
distilabel_metadata.content: Cody
  
  # Problem 1089. Create a random vector of integers with given sum
  
  Solution 177453
  
  Submitted on 14 Dec 2012 by Christopher
  This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
  
  ### Test Suite
  
  Test Status Code Input and Output
  1   Pass
  %% nocheat = isempty(regexp(evalc('type random_sequence'),'([^f]eval|regexprep|inline|str2func)')); m = 26; s = 5000; y = random_sequence(m,s); assert(isequal(sum(y),s) && abs(mean(y)-m/2)<m*sqrt(m/s)+1/2 && isequal(y,round(y)) && abs(std(y)-m/sqrt(12))*sqrt(s)/m<2.5 && nocheat)
  
  2   Pass
  %% nocheat = isempty(regexp(evalc('type random_sequence'),'([^f]eval|regexprep|inline|str2func)')); m = 2; s = 1000; y = random_sequence(m,s); assert(isequal(sum(y),s) && abs(mean(y)-m/2)<m*sqrt(m/s)+1/2 && isequal(y,round(y)) && abs(std(y)-m/sqrt(12))*sqrt(s)/m<2.5 && nocheat)
  
  3   Pass
  %% nocheat = isempty(regexp(evalc('type random_sequence'),'([^f]eval|regexprep|inline|str2func)')); m = 1000; s = 100000; y = random_sequence(m,s); assert(isequal(sum(y),s) && abs(mean(y)-m/2)<m*sqrt(m/s)+1/2 && isequal(y,round(y)) && abs(std(y)-m/sqrt(12))*sqrt(s^1/m^3)<1 && nocheat)
distilabel_metadata.role: user
distilabel_metadata.raw_output_q_a_detector_0: The document describes a problem from a coding challenge platform, specifically Problem 1089, which involves creating a random vector of integers with a given sum. The document includes a test suite with three test cases that validate the solution. Each test case checks various properties of the generated vector, such as the sum, mean, and standard deviation.
  
  The document does not contain a direct math question or a question and answer. It is primarily a code snippet and test suite.
  
  Label: no-question