random number id generator javascript code example Example: js random id Math.random().toString(36).slice(2);