Linear congruential generator: Difference between revisions
Content added Content deleted
m (→{{header|Wren}}: Minor tidy) |
|||
Line 3,879: | Line 3,879: | ||
{{libheader|Wren-fmt}} |
{{libheader|Wren-fmt}} |
||
Some of the intermediate calculations here require integers >= 2^53 so we need to use BigInt. |
Some of the intermediate calculations here require integers >= 2^53 so we need to use BigInt. |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">import "./big" for BigInt |
||
import "/fmt" for Fmt |
import "./fmt" for Fmt |
||
// basic linear congruential generator |
// basic linear congruential generator |