initializing RNG