3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-26 14:23:38 +01:00
dft_tools/doc/reference/python/random/random.py

8 lines
199 B
Python
Raw Normal View History

from pytriqs.random import *
from pytriqs.plot.mpl_interface import *
r = RandomGenerator("lagged_fibonacci607", 237489)
l = []
for i in range(10000): l += [r.rand(),]
plt.hist(l, 30, normed=True);