randomnumber generators now initialized only once, much faster