View Single Post
Old 10th June 2005, 21:42   #4
Ben Allison
Former Winamp Developer
Benski's Avatar
Join Date: Jan 2005
Location: Brooklyn, NY
Posts: 1,057
Daniel is correct. sort of.

The problem is that the standard C function only returns random numbers in the range from 0-32767)

and note that:
#define RAND_MAX 0x7fff

There are good random number libraries available from std::boost, and some are going to be in the next C++ standard.

Hopefully this will be fixed by the next version =)
Benski is offline   Reply With Quote