Random numbers: Difference between revisions

Content added Content deleted
No edit summary
Line 832: Line 832:


For newer versions of gforth (tested on 0.7.3), it seems you need to use <tt>HERE SEED !</tt> instead of <tt>HERE TO SEED</tt>, because <tt>SEED</tt> has been made a variable instead of a value.
For newer versions of gforth (tested on 0.7.3), it seems you need to use <tt>HERE SEED !</tt> instead of <tt>HERE TO SEED</tt>, because <tt>SEED</tt> has been made a variable instead of a value.

I think <lang>rnd rnd dabs d>f</lang> in frnd's definition should be <lang>rnd 0 dabs d>f</lang>That way, you apparantly are actually doing a conversion of rnd to a float. This appears very non-compliant.


=={{header|Fortran}}==
=={{header|Fortran}}==