- Joined
- May 16, 2008
- Messages
- 1,258 (0.20/day)
- Location
- North Carolina
Working on a math problem.
Being the overachiever that I am, I'd like to generate an absurd number of trials. So I want to do the first situation a huge number of times and then get the average. Same for situation 2. Is there any way I could use my computer to do this? My Q6600 is on Windows and my 2GHz Core Duo laptop runs Ubuntu.
- First, I need to generate a random integer from 1 to 6. I need to keep doing this until I get the number 3. I need to record how many numbers had to be generated.
- Second, I need to generate random integers from 1 to 6 until I have picked every number once. Again, I need to know how many numbers were generated.
Being the overachiever that I am, I'd like to generate an absurd number of trials. So I want to do the first situation a huge number of times and then get the average. Same for situation 2. Is there any way I could use my computer to do this? My Q6600 is on Windows and my 2GHz Core Duo laptop runs Ubuntu.