check : List Property -> Seed -> TestOutput
check properties seed = map (\f -> f seed) properties
continuousCheckEvery : Time -> List Property -> Signal TestOutput
continuousCheckEvery time properties =
Signal.foldp mergeTestOutputs []
(Signal.map ((check properties) << initialSeed << round) (every time))
int requires a Seed, so you can't use int to get the initial Seed. Also, running a pseudorandom generator twice doesn't make its output more random. You want a truly random seed, and the best place to get that is from hardware.
Here's a (slightly old) article about randomness in the browser:
http://bocoup.com/weblog/random-numbers/
One could probably use the FFI to do some of those techniques?
Craig
--
You received this message because you are subscribed to a topic in the Google Groups "Elm Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elm-discuss/ilDp3-ekJ98/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elm-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss...@googlegroups.com.