Scalable random number generator
- git clone https://github.com/exgalsky/scaleran.git
- cd scaleran
- pip install .
Currently runs on perlmutter in the xgsmenv enviroment.
Example included here in scripts/example.py will produce 20 random numbers from a normal distribution.
import scaleran as sr
# create stream
stream = sr.Stream(
seed = 13579,
nsub = 2
)
seq = stream.generate(start=5,size=20)
print('seq',seq)
print('seq shape:',seq.shape)
print('seq mean:',seq.mean())