Random numbers: Difference between revisions

Content added Content deleted
Line 833: Line 833:
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.
<lang>rnd rnd dabs d>f</lang> is necessary, but surprising and definitely not well documented / perhaps not compliant.


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