Re: How to solve this random integer generation problem?
- From: Jack Tomsky <jtomsky@xxxxxxxxxxxxx>
- Date: Wed, 31 Jan 2007 13:41:07 EST
Question:
Given a program which can generate one of {1, 2, 3,
4, 5} randomly.
How can we get another generator which can generate
one of
{1,2,3,4,5,6,7} randomly?
Please help.
You can also start with a uniform random number generator and define J = Int(7U+1), where 0<U<1 and Int is the integer function.
Jack
.
- References:
- How to solve this random integer generation problem?
- From: Jia Lin
- How to solve this random integer generation problem?
- Prev by Date: Re: questions on how to create linear spline terms
- Next by Date: Comparing two occurrence rates
- Previous by thread: Re: How to solve this random integer generation problem?
- Next by thread: Measure of representativeness
- Index(es):