text: Cody
  
  # Problem 44455. Find the average of a random sequance
  
  Solution 1841790
  
  Submitted on 7 Jun 2019 by anan jeraise
  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
  filetext = fileread('MeanWhile.m'); assert(isempty(strfind(filetext, 'regexp')),'regexp hacks are forbidden')
  
  2   Pass
  filetext = fileread('MeanWhile.m'); assert(isempty(strfind(filetext, 'sum')),'sum() function is forbidden')
  
  3   Pass
  filetext = fileread('MeanWhile.m'); assert(isempty(strfind(filetext, 'mean')),'mean() function is forbidden')
  
  4   Pass
  rng(1); av_correct = 5.5; assert(isequal(MeanWhile(),av_correct))
  
  s = 4 c = 1 s = 11 c = 2 5.5000
  
  5   Pass
  rng(2); av_correct = 4; assert(isequal(MeanWhile(),av_correct))
  
  s = 4 c = 1 4
  
  6   Pass
  rng(3); av_correct = 5.25; assert(isequal(MeanWhile(),av_correct))
  
  s = 6 c = 1 s = 13 c = 2 s = 16 c = 3 s = 21 c = 4 s = 30 c = 5 s = 39 c = 6 s = 40 c = 7 s = 42 c = 8 5.2500
  
  7   Pass
  rng(7); av_correct = 0; assert(isequal(MeanWhile(),av_correct))
  
  8   Pass
  rng(0); av_correct = 6.571428571428571; assert(isequal(MeanWhile(),av_correct))
  
  s = 8 c = 1 s = 17 c = 2 s = 18 c = 3 s = 28 c = 4 s = 34 c = 5 s = 35 c = 6 s = 38 c = 7 s = 44 c = 8 s = 54 c = 9 s = 64 c = 10 s = 65 c = 11 s = 75 c = 12 s = 85 c = 13 s = 90 c = 14 s = 98 c = 15 s = 99 c = 16 s = 103 c = 17 s = 113 c = 18 s = 121 c = 19 s = 131 c = 20 s = 138 c = 21 6.5714
explanation: The document contains a math problem and its solution. The problem is to find the average of a random sequence without using certain functions like `sum` and `mean`. The solution is verified through a series of test cases, each with a specific random seed and expected average value.
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 44455. Find the average of a random sequance
  
  Solution 1841790
  
  Submitted on 7 Jun 2019 by anan jeraise
  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
  filetext = fileread('MeanWhile.m'); assert(isempty(strfind(filetext, 'regexp')),'regexp hacks are forbidden')
  
  2   Pass
  filetext = fileread('MeanWhile.m'); assert(isempty(strfind(filetext, 'sum')),'sum() function is forbidden')
  
  3   Pass
  filetext = fileread('MeanWhile.m'); assert(isempty(strfind(filetext, 'mean')),'mean() function is forbidden')
  
  4   Pass
  rng(1); av_correct = 5.5; assert(isequal(MeanWhile(),av_correct))
  
  s = 4 c = 1 s = 11 c = 2 5.5000
  
  5   Pass
  rng(2); av_correct = 4; assert(isequal(MeanWhile(),av_correct))
  
  s = 4 c = 1 4
  
  6   Pass
  rng(3); av_correct = 5.25; assert(isequal(MeanWhile(),av_correct))
  
  s = 6 c = 1 s = 13 c = 2 s = 16 c = 3 s = 21 c = 4 s = 30 c = 5 s = 39 c = 6 s = 40 c = 7 s = 42 c = 8 5.2500
  
  7   Pass
  rng(7); av_correct = 0; assert(isequal(MeanWhile(),av_correct))
  
  8   Pass
  rng(0); av_correct = 6.571428571428571; assert(isequal(MeanWhile(),av_correct))
  
  s = 8 c = 1 s = 17 c = 2 s = 18 c = 3 s = 28 c = 4 s = 34 c = 5 s = 35 c = 6 s = 38 c = 7 s = 44 c = 8 s = 54 c = 9 s = 64 c = 10 s = 65 c = 11 s = 75 c = 12 s = 85 c = 13 s = 90 c = 14 s = 98 c = 15 s = 99 c = 16 s = 103 c = 17 s = 113 c = 18 s = 121 c = 19 s = 131 c = 20 s = 138 c = 21 6.5714
distilabel_metadata.role: user
distilabel_metadata.raw_output_q_a_detector_0: The document contains a math problem and its solution. The problem is to find the average of a random sequence without using certain functions like `sum` and `mean`. The solution is verified through a series of test cases, each with a specific random seed and expected average value.
  
  Label: question-and-answer