Anonymous user
Subtractive generator: Difference between revisions
m
→{{header|REXX}}: elided a blank line, aligned some statements, changed some comments.
m (Formatting.) |
m (→{{header|REXX}}: elided a blank line, aligned some statements, changed some comments.) |
||
Line 1,742:
Some optimization was done so that the first two '''do''' loops executed faster.
<lang rexx>/*REXX program uses a subtractive generator, and creates a sequence of random numbers. */
s.0= 292929;
numeric digits 20
cI= 55;
▲ end /*i*/
Cp= 34
end
m= 219; Cj= 24
t= 235
exit 0 /*stick a fork in it, we're all done. */
/*──────────────────────────────────────────────────────────────────────────────────────*/
mod: procedure;
r:
s:
{{out|output|text= when using the default input:}}
<pre>
|