tested rnd num generator