add pseudo random number generator
replace random() by custom prng class