Ticket #871 (closed todo: done)
add 'rand' as a dynop
| Reported by: | coke | Owned by: | dukeleto |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5 |
| Component: | none | Version: | |
| Severity: | medium | Keywords: | |
| Cc: | Language: | ||
| Patch status: | Platform: |
Description
To support TT #189, we need to create a 'rand' dynop.
Suggested forms:
$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
Change History
Note: See
TracTickets for help on using
tickets.
