[R] generate random numbers for lotteries
Vale Fara
valef78 at gmail.com
Sat Apr 28 00:10:26 CEST 2012
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
More information about the R-help
mailing list