andrewMacmurray / elm-concurrent-task / ConcurrentTask.Random

Generate random values based on an elm/random Generator.

This Task uses a builtin randomSeed task from the JavaScript runner (the same seed elm/random uses - Date.now()).

If needed you can override the randomSeed task like so (e.g. use node or web crypto module to generate secure randomness):

import * as ConcurrentTask from "

generate : Random.Generator a -> ConcurrentTask x a

Generate a random value based on an elm/random Generator.