first version without PRNG