01-14-2007, 03:10 AM
Quote:Part of the problem is that the C library's rand() (which was used by the old RND) returns an integer (up to 2^16 with the MSVCRT runtime, if I remember right), which FB then converts to a floating-point value, which you then convert back to an integer...
4 -> .000032 -> 0
2811 -> .0003984 -> 0 . . . .
lol