26 May
2000
26 May
'00
7:08 p.m.
George Shapovalov wrote:
var N:any_integer_type; (may be not extended (very large) integer integer) random(N); would return integer type in the range 0..N-1
In GPC, in may be very large, e.g.: program Foo; var a : LongInt; begin a := Random (1000000000000000000); Writeln (a) end.
random; (without parameters) would return float in the range 0..1.
(with 0 inclusively and 1 exclusively) 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
9579
Age (days ago)
9579
Last active (days ago)
1 comments
2 participants
participants (2)
-
Frank Heckenbach -
Marco van de Voort