mirror of
https://github.com/triqs/dft_tools
synced 2024-11-01 03:33:50 +01:00
2921cbcc06
A trivial cythonized version of the c++ random_generator class. Useful to get the names of the generators from the python. new file: pytriqs/random/* new file: doc/reference/python/random/*
8 lines
199 B
Python
8 lines
199 B
Python
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);
|