Random numbers: Difference between revisions
m
→{{header|Standard ML}}
m (→{{header|Wren}}: Changed to Wren S/H) |
|||
Line 2,676:
Other implementations of Standard ML have their own random number generators. For example, Moscow ML has a <code>Random</code> structure that is different from the one from SML/NJ.
{{works with|
The SML Basis Library does not provide a routine for uniform deviate generation, and PolyML does not have one. Using a routine from "Monte Carlo" by Fishman (Springer), in the function uniformdeviate, and avoiding the slow IntInf's:
<syntaxhighlight lang="
val urandomlist = fn seed => fn n =>
let
|