no more window.console.log, fix random()