added pseudo random number generator to wtest