Hi, I am working with lotteries and I need to generate two sets of uniform random numbers. Requirements: 1) each set has 60 random numbers 2) random numbers in the first set are taken from an interval (0-10), whereas numbers in the second set are taken from a higher interval (15-25) 3) numbers generated in the first set should be matched to numbers in the second set (row by row) so that the expected value of each couple of random numbers (i.e. of each lottery) is around to a given value (12.5 +/- 5, where 12.5 is the median value of the interval extremes). For the computation of the expected value, the probabilities in each lottery are ½ and ½.
How do this? Any help given would be greatly appreciated. Thank you, Valeria PhD cognitive sciences University of Siena ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.