[chuck-users] random seed [BUG]
Kassen
signal.automatique at gmail.com
Sat Sep 11 14:22:19 EDT 2010
>
> yes! everything is fine. thanks
>
> Good!
> Could you be a bit more specific?
>
>
> sorry, I meant Std.rand.
>
> can you run this code please:
>
> while(1)
> {
> <<<Std.rand2(-2147483648 , 2147483647)>>>;
> 2::second=>now;
> }
>
>
>
Yes, I can. I get this;
2147483647 :(int)
2147483647 :(int)
-2147483648 :(int)
-2147483648 :(int)
-2147483647 :(int)
-2147483648 :(int)
-2147483647 :(int)
-2147483647 :(int)
-2147483648 :(int)
-2147483648 :(int)
2147483647 :(int)
2147483647 :(int)
-2147483648 :(int)
-2147483647 :(int)
-2147483647 :(int)
-2147483647 :(int)
-2147483648 :(int)
2147483647 :(int)
-2147483648 :(int)
2147483647 :(int)
2147483647 :(int)
-2147483648 :(int)
2147483647 :(int)
2147483647 :(int)
-2147483648 :(int)
-2147483647 :(int)
2147483647 :(int)
-2147483647 :(int)
2147483647 :(int)
-2147483648 :(int)
2147483647 :(int)
-2147483648 :(int)
-2147483647 :(int)
-2147483648 :(int)
-2147483647 :(int)
-2147483647 :(int)
2147483647 :(int)
-2147483648 :(int)
-2147483648 :(int)
-2147483648 :(int)
2147483647 :(int)
-2147483647 :(int)
-2147483647 :(int)
So.... That looks like a bug, you are totally right. Good catch, Lars!
Kas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20100911/296a20a3/attachment.htm>
More information about the chuck-users
mailing list