Skip to content

tanishqkrk/randomjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

RANDOMJS

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!

Deployment

To deploy this project run

<script src="https://cdn.jsdelivr.net/gh/tanishqkrk/randomjs@7ef3de0/random.js"></script>

Methods

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published