jeudi 27 juin 2019

How to use current time in seed number of ELM random

Random seed in Elm programming. If I use fixed seed I will get same random number. How can I use current time in seed number? I am using Elm 0.19.

Random.initialSeed <currentTime>

So - how to get current time or start time to ?




Aucun commentaire:

Enregistrer un commentaire