Random numbers: Difference between revisions

m
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|PolyMLPoly/ML}}
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="smlhsml">
val urandomlist = fn seed => fn n =>
let
23

edits