27 May
2000
27 May
'00
1:11 a.m.
Marco van de Voort wrote:
In GPC, in may be very large, e.g.:
<snip>
a := Random (1000000000000000000);
Random has a 64-bit definition? Or both 64 and 32 with overloading?
The internal RNG is 32 bit, but is a 64 bit number is wanted, Random calls it twice. The `Random' function is overloaded (with compiler magic) for LongestReal and LongestCard (i.e., the longest available real and (unsigned) integer types -- this may by 64 bit, or 128 bit on 64 bit systems). Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/ GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html