Random number generator (device): Difference between revisions

Content deleted Content added
m {{out}}
Line 208:
<lang groovy>(0..4).each { println rng.nextInt() }</lang>
 
{{out}}
Output:
<pre>380425053
-1003791794
Line 288:
<lang Mathematica>Table[rand32[], {i, 1, 10}]</lang>
 
{{out}}
Output:
<pre>{355587317, -869860319, -91421859, 1605907693, 101463390, 891823090,
-531713717, -1038608428, 1717313407, 674189312}</pre>
Line 327:
*/
</lang>
{{out}}
'''Output:'''
<pre>
$ for ((i=0; i<10; ++i)); do java RRandomGen; done # Shell loop to run the command 10 times
Line 401:
end.
</lang>
{{out}}
Output:
<pre>
>: ./RandomNumberDevice
Line 486:
 
say random(0,_-1)*_+random(0,_-1) /*gen an unsigned 32-bit random #*/</lang>
{{out}}
'''output'''
<pre style="overflow:scroll">
4294967296