On Thu, Sep 11, 2003 at 11:04:40AM +0200, Louis Pouzin wrote:
> Hi,
> 
> In a script intended for mac, unix and windows platforms, I use the
> "rand" function. It is essential that it produces the same sequence on
> all three platforms. This is the case with mac and unix. On windows, it's
> a completely different set.
> 
> Is there another random library routine designed to be independent from
> Micros--t shenanigans ?

This is not a bug in Microsoft's implementation of rand(), it is a bug in
your expectations.  It's ridiculous to expect rand() to function
identically across all platforms.  That's simply not the point of rand().
If you need consistent "random" numbers, you should implement your own
generator.

Ronald

Reply via email to