[chuck-users] easy random numbers

Scott Wheeler wheeler at kde.org
Wed Nov 21 20:05:40 EST 2007


Kassen wrote:
>
> Assuming the  random number generator itself is solid enough for our
> purposes (sounds safe to me as a assumption, it's not that hard) this
> could still be fixed by coming up with a per session initial seed for
> the series,  then basing every new one the last permutation right?

>From what I saw earlier today (not around a Windows machine at the
moment), just adding this at the beginning should work:

srand(rand());

-Scott


More information about the chuck-users mailing list