generate id number nodejs code example Example: generate id js Math.floor(Math.random() * 100) //the bigger the number the bigger the output