Generating randomly is a real pain in JavaScript. The literals and syntax is way too long, randomjs is here to save the day by providing a library that lets you randomize stuff with one simple method call!
To deploy this project run
<script src="https://cdn.jsdelivr.net/gh/tanishqkrk/randomjs@7ef3de0/random.js"></script>
All the methods are called by by random.method().
random.number()
Generates a random number between 0 and 1
random.numberFromZero(limit)
Generates a random number between 0 and limit
random.numberRange(from, to)
Generates a random number between from and to
random.uLetters(n)
Generates n amount random uppercase letter
random.sLetters(n)
Generates n amount random lowercase letter
random.element(array)
Returns a random element from given array
random.element(array, n)
Returns n amount of random elements from given array