Skip to content

tahawy111/randomId

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

randomid.js

Very Amazing function to create Random Unique Id

Install

npm install @tahawy111/randomid.js

Usage

import randomid from "@tahawy111/randomid.js";

// just call the funcion like below

console.log(new RandomId().randomid()); // returns => ym0kg4cy16rk7t2z674w4y6yh3
console.log(new RandomId().randomid()); // returns => gqacpenixft8frhy3nck6nzvse
console.log(new RandomId().randomid()); // returns => ep6j4prd03tlm1mddy3pqocnzx
console.log(new RandomId().randomid()); // returns => 7873cbd6ot4obj8npalbac10fw
console.log(new RandomId().randomid()); // returns => tkuu48b787m07vzw3czveu67mc
console.log(new RandomId().randomid()); // returns => hqtm4xlkrf3yq0rnlcuk6uvo3b
console.log(new RandomId().randomid()); // returns => 3li7mna467wa4vtb7g437y73j4

Also u can get random unique numbers

import randomid from "@tahawy111/randomid.js";

// just call the funcion like below

console.log(new RandomId().randomUniqueNumbers(6)); // returns => 521851

Also u can get random unique numbers

import randomid from "@tahawy111/randomid.js";

// just call the funcion like below

console.log(new RandomId().randomUniqueArrayOfNumbers(6)); // returns => [209740, 263661, 797886, 622969, 682373, 569858]

Also u can get Random Time Stamp

import randomid from "@tahawy111/randomid.js";

// just call the funcion like below

console.log(new RandomId().randomTimeStamp()); // returns => 309843909687909

ths length of randomid is 26 ♥♥♥

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published