unison/unison-src/transcripts-manual/benchmarks/random.u
2022-12-05 12:39:42 -06:00

8 lines
175 B
Plaintext

-- sum up a bunch of random numbers
go acc n =
if n == 10000 then acc
else go (acc + Random.natIn 0 1000) (n + 1)
main = do
timeit "random" '(splitmix 19 '(go 0 0))