switch to os random generator