#871: add 'rand' as a dynop
--------------------+-------------------------------------------------------
 Reporter:  coke    |       Owner:     
     Type:  todo    |      Status:  new
 Priority:  normal  |   Milestone:     
Component:  none    |     Version:     
 Severity:  medium  |    Keywords:     
     Lang:          |       Patch:     
 Platform:          |  
--------------------+-------------------------------------------------------
 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

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/871>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to