[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to generate a random number?

On Thu, 4 Oct 2001, Liu Tao wrote:
seed your random number generator like so:


before calling random.

> I use random() in my program to generate a random number,
> but every time when I restart my program I get the same number.
> How can I get different random numbers each time?
> --
> Regards
> Liu Tao

Reply to: