Generate numbered ID - Node.js Security

Node.js examples for Security:GUID

Description

Generate numbered ID

Demo Code

generateId = function() {
    return Math.floor((1 + Math.random()) * 0x10000);
};

Related Tutorials