use math random secure and ignore warnings by redirect stderr