Re: Help for random number generator
- From: Richard Ulrich <Rich.Ulrich@xxxxxxxxxxx>
- Date: Tue, 13 Sep 2005 13:14:43 -0400
On 12 Sep 2005 22:49:33 -0700, "Nishant" <nishantxl@xxxxxxxxxxxxxx>
wrote:
> hello Friends
> Please suggest me regarding the best possible use of
> random number generator.
> I am unable to figure out the reason why it is not working properly.I
> have seen that the random number generator works fine when I use less
> number of iteration in the for loop but it fails to work properly when
> I increase the number of iterations in the for loop.
>
> meaning that the random number generator generates different
> sequence of random no each time if the no of iterations in the for
> loop is less where as it fails to produce a different sequence of
> random no each time if the no of iterations in the for loop in large.
Gee, it *seems* like you are complaining that it
produces the same sequence for a large loop.
But it should *always* produce the same sequence
when it starts with the same seed-value. That makes
me think you starting with very little knowledge of
what you are doing.
So, what are you doing with Seeds?
If you want more concrete help, I expect you will need to
post the code, in whatever programming language it is.
>
>
> please let me know any technique to debug this error in my code
> Awaiting your reply
Be very careful about where you place the statements
that initialize the seed. Read the documentation.
--
Rich Ulrich, wpilib@xxxxxxxx
http://www.pitt.edu/~wpilib/index.html
.
- Follow-Ups:
- Re: Help for random number generator
- From: Nishant
- Re: Help for random number generator
- References:
- Help for random number generator
- From: Nishant
- Re: Help for random number generator
- From: Nishant
- Help for random number generator
- Prev by Date: Re: Geometric average vs Arithmetic average
- Next by Date: Re: Testing the Homogeneity and Sufficiency of empirical data
- Previous by thread: Re: Help for random number generator
- Next by thread: Re: Help for random number generator
- Index(es):
Relevant Pages
|