Randomization for Recitation 4Patrick Dale McCray, Ph.D.23 February, 2011(initial version)Assignment of problems to speakers for recitation scheduled on Wednesday, 2 March, 2011Assignment of problems to speakers for rectation 4 scheduled on Wednesday, 23 March, 2011Initialize the psuedorandom number generators.In[18]:=SeedRandomIn[19]:=RandomInteger1 000 000 000, 9 999 999 999Out[19]=2 918 487 031In[20]:=SeedRandom2 036 873 713This ten digit number, 2036873713, was initially generated from the system clock circa 3 PM, Wednesday, 23 February, 2011.In[21]:=SeedRandom7 667 980 127This ten digit number, 7667980127, was initially generated from the system clock circa 4:36 PM, Tuesday, 8 March, 2011.Generate random samples of the first ten problemsChoose 9 of problems 1 through 10 for Math 149 03:In[22]:=Math14903 RandomSample1, 2, 3, 4, 5, 6, 7, 8, 9, 10,9Out[22]=7,5,10,3,8,6,2,4,9Choose 6 of these nine problems for Math 149 01:In[23]:=Math14901 RandomSampleMath14903, 6Out[23]=5, 6, 2, 3, 9, 10From this random sample we can assign Problem 7 to Person 3. Computationally,In[24]:=Math149013Out[24]=2In[25]:=ProblemList 1, 2, 3, 5, 7, 8, 9, 10, 11, 12Out[25]=1, 2, 3, 5, 7, 8, 9, 10, 11, 12 In[26]:=Math14903 RandomSampleProblemList, 10Out[26]=9, 2, 1, 5, 12, 7, 8, 10, 3, 11In[27]:=Math14901 RandomSampleMath14903, 5Out[27]=1, 9, 10, 2, 32
View Full Document