Translations:Gerador Congruencial Linear/9/en
Ir para navegação
Ir para pesquisar
<syntaxhighlight lang="Python"> def pseudo_uniform_good(mult=16807,mod=(2**31)-1,seed=123456789,size=1):
""" A reasoanbly good pseudo random generator """ U = np.zeros(size) x = (seed * mult + 1) % mod U[0] = x / mod