Ticket #871 (closed todo: done)
add 'rand' as a dynop
|Reported by:||coke||Owned by:||dukeleto|
To support TT #189, we need to create a 'rand' dynop.
$N0 = rand # generate a random float between 0 and 1 $N0 = rand $N1 # generate a random float between 0 and $N1
Might also want
srand $N0 # seed RNG.
If there is a RNG, any attributes for it should probably go into the Parrot Interpreter object.
Should be added to src/dynoplibs/math.ops