shortened init of random