monome / crow

Crow speaks and listens and remembers bits of text. A scriptable USB-CV-II machine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can use standard math.random as well as true RNG?

trentgill opened this issue · comments

commented

some people desire to have a seeded-random number generator on crow. it already exists in the codebase, but we overwrite math.random with the interface to the TRNG.

all we'd need to do is:

math.srandom = math.random
math.srandomseed = math.randomseed
-- then overwrite math.random with new fn

is math.srandom the correct name to use? should it be seededrandom?

commented

fixed by #442