time-as-random install npm i time-as-random # or yarn add time-as-random use // import package import TimeAsRandom from 'time-as-random'; // default value of `deep` is 16 const random = new TimeAsRandom(16); // get random id random(); // 4b617630424