mirror of
https://github.com/triqs/dft_tools
synced 2024-12-27 06:43:40 +01:00
e6529b608e
- Use a new buffered_function to replace the complicated generator code from ALPS. - Clean the implementation of the random_generator - update the documentation - update to the new python wrapper (could not be done with the previous version, because of lack of move constructor).
8 lines
203 B
Python
8 lines
203 B
Python
from pytriqs.random_generator import *
|
|
from pytriqs.plot.mpl_interface import *
|
|
|
|
r = RandomGenerator("lagged_fibonacci607", 237489)
|
|
l = []
|
|
for i in range(10000): l += [r(),]
|
|
plt.hist(l, 30, normed=True)
|