Answers for "javascript generate random number based on date"

1

javascript generate random number based on date

var NiceRandomNumber = Date.now() + Math.random();
Posted by: Guest on September-13-2021
0

generate random date in javascript

function randomDate(start, end) {
    return new Date(start.getTime() + Math.random() * (end.getTime() - start.getTime()));
}

randomDate(new Date(2012, 0, 1), new Date())
Posted by: Guest on October-23-2020

Code answers related to "javascript generate random number based on date"

Code answers related to "Javascript"

Browse Popular Code Answers by Language