All Projects → akulsr0 → random-in

akulsr0 / random-in

Licence: MIT License
Get Random Numbers, Names, Dates and much more.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to random-in

Rando.js
The world's easiest, most powerful random function.
Stars: ✭ 659 (+4293.33%)
Mutual labels:  opensource, random
Chronovox-Studio
Open-Source Voxel Editor
Stars: ✭ 25 (+66.67%)
Mutual labels:  opensource
opendsp
一款开源的移动dsp广告平台, 内置主流adx对接和开箱即用的dashboard
Stars: ✭ 87 (+480%)
Mutual labels:  opensource
opendevufcg.org
Portal da OpenDevUFCG
Stars: ✭ 52 (+246.67%)
Mutual labels:  opensource
spotify-true-random
🔀 An application for unbiased truly random playlist and library shuffling with Spotify.
Stars: ✭ 51 (+240%)
Mutual labels:  random
Virtual-tryon
A virtual tryon(mirror) script for optical ecommerce - Opensource
Stars: ✭ 23 (+53.33%)
Mutual labels:  opensource
pyswahili
A Swahili version of programming language to allow Swahili speakers get started with programming
Stars: ✭ 64 (+326.67%)
Mutual labels:  opensource
sailing-robot
Southampton sailing robot
Stars: ✭ 74 (+393.33%)
Mutual labels:  opensource
ML-Reserve
An Open-Source repository where students could showcase their skills by contributing their ML and DL projects!
Stars: ✭ 15 (+0%)
Mutual labels:  opensource
react-native-awesome-alert
🔔 Customizable modal components with ✔️check options in React Native
Stars: ✭ 50 (+233.33%)
Mutual labels:  opensource
melanchat
Friendly Random Chat
Stars: ✭ 13 (-13.33%)
Mutual labels:  random
prestashop-shop-creator
Generate random demo data to test your PrestaShop shop.
Stars: ✭ 22 (+46.67%)
Mutual labels:  random
microrealestate
This is an Open Source Real estate management system which helps landlords to manage their rentals and properties
Stars: ✭ 137 (+813.33%)
Mutual labels:  opensource
starter-repo
Documentation templates for use in open source and open development projects
Stars: ✭ 39 (+160%)
Mutual labels:  opensource
SharpLoader
🔮 [C#] Source code randomizer and compiler
Stars: ✭ 36 (+140%)
Mutual labels:  random
Hacktoberfest2020
Repository for first timers to get started in Open Source Contributions
Stars: ✭ 44 (+193.33%)
Mutual labels:  opensource
governance
TODO Group Governance
Stars: ✭ 69 (+360%)
Mutual labels:  opensource
BhimIntegers
BhimIntegers🚀 is a C++ library that is useful when we are dealing with BigIntegers💥💥. We can handle big integers (integers having a size bigger than the long long int data type) and we can perform arithmetic operations📘 like addition, multiplication, subtraction, division, equality check, etc📐📐. Also, there are several functions like factorial, …
Stars: ✭ 43 (+186.67%)
Mutual labels:  opensource
terraform-provider-random
Supports the use of randomness within Terraform configurations. This is a logical provider, which means that it works entirely within Terraform logic, and does not interact with any other services. This provider is maintained by the HashiCorp Terraform team.
Stars: ✭ 109 (+626.67%)
Mutual labels:  random
Arduino-Cheat-Sheet
Cheat Sheets for Arduino Programming Language
Stars: ✭ 30 (+100%)
Mutual labels:  opensource

random-in

HitCount npm version MIT License PR's Welcome

Get Random Numbers, Names, Dates and much more.

Table of Contents

Installation

npm install random-in

Numbers

Get Random Integer of n Digit

getNDigit(n) --> n is number of digits

const { getNDigit } = require('random-in');
console.log(getNDigit(5)); // 24646

Get Random Integer in a given range

getRandomBetween(min, max) ---> to get a random number between min and max

Note: min and max are inclusive i.e. getRandomBetween(1,100) may return 1 or 100

const { getRandomBetween } = require('random-in');
console.log(getRandomBetween(5, 50)); // 26

Get Random Floating number in a given range

getRandomFloatBetween(min, max) --> to get a random floating number between min and max

const { getRandomFloatBetween } = require('random-in');
console.log(getRandomFloatBetween(5, 50)); // 19.69726289036264

Get N Random Number in a given range

getNRandomBetween(n, min, max) --> to get n random numbers between min and max

const { getNRandomBetween } = require('random-in');
console.log(getNRandomBetween(5, 1, 50)); // [34, 23, 28, 6, 14]

Names

Get random users name

Get Random Name

Get a random full name of any gender

const { getName } = require('random-in');
console.log(getName()); // "Winnifred Struble"

Get Random Male Name

Get a random full name (Male)

const { getMaleName } = require('random-in');
console.log(getMaleName()); // "Derek Gilstrap"

Get Random Female Name

Get a random full name (Female)

const { getFemaleName } = require('random-in');
console.log(getFemaleName()); // "Gerri Bavaro"

Get Random Male First Name

Get a random first name (Male)

const { getMaleFirstName } = require('random-in');
console.log(getMaleFirstName()); // Jamey

Get Random Female First Name

Get a random first name (Female)

const { getFemaleFirstName } = require('random-in');
console.log(getFemaleFirstName()); // "Beckie"

Get Random Last Name

Get a random last name

const { getLastName } = require('random-in');
console.log(getLastName()); // "Reinbold"

Get Random Indian Name

Get a random Indian full name of any gender

const { getIndianName } = require('random-in');
console.log(getIndianName()); // "Nagendra Shankar"

Get Random Indian Male Name

Get a random Indian full name (Male)

const { getIndianMaleName } = require('random-in');
console.log(getIndianMaleName()); // "Ashok Dalal"

Get Random Indian Female Name

Get a random Indian full name (Female)

const { getIndianFemaleName } = require('random-in');
console.log(getIndianFemaleName()); // "Deepali Bose"

Get Random Indian Male First Name

Get a random Indian first name (Male)

const { getIndianMaleFirstName } = require('random-in');
console.log(getIndianMaleFirstName()); // "Mukul"

Get Random Indian Female First Name

Get a Random Indian first name (Female)

const { getIndianFemaleFirstName } = require('random-in');
console.log(getIndianFemaleFirstName()); // "Anandi"

Get Random Indian Last Name

Get a random Indian last name

const { getIndianLastName } = require('random-in');
console.log(getIndianLastName()); // "Pant"

Dates

Get Random Dates

Get Random Date in between two Dates

Get a random date between two dates

Note: new Date(YYYY, MM, DD) If month is less than 10, let's say 4, use 4 instead of 04 If date is less than 10, let's say 6, use 6 instead of 06

const { getDateBetween } = require('random-in');
console.log(getDateBetween(new Date(1947, 8, 15), new Date()));
// Tue Aug 07 1956 10:42:05 GMT+0530 (India Standard Time)

Get Random Date (Future)

Get a random date from future

Note: Default future date limit is 50 years from current date. getRandomDateFuture(futureYear). futureYear is of type "number".

const { getRandomDateFuture } = require('random-in');
console.log(getRandomDateFuture(2021));
// 2021-07-22T00:50:23.025Z

Emails

Get Random Email Address

Get Random Email Id

Get a random email id

const { getRandomEmail } = require('random-in');
console.log(getRandomEmail()); // "[email protected]"

Passwords

Get Random Passwords

Get Alphanumeric Password

Get a random alphanumeric password of n length

const { getAlphanumericPassword } = require('random-in');
console.log(getAlphanumericPassword(8)); // "IVYs4uI9"

Get Lowercase Password

Get a random lowercase alphanumeric password of n length

const { getLowercasePassword } = require('random-in');
console.log(getLowercasePassword(8)); // "ffm690dx"

Get Uppercase Password

Get a random uppercase alphanumeric password of n length

const { getUppercasePassword } = require('random-in');
console.log(getUppercasePassword(8)); // "S7PM8AOO"

Get Alpha Password

Get a random only alphabet password of n length

const { getAlphaPassword } = require('random-in');
console.log(getAlphaPassword(8)); // "juYyjMJs"

Get Alpha Lowercase Password

Get a random only lowercase alphabets password of n length

const { getAlphaLowercasePassword } = require('random-in');
console.log(getAlphaLowercasePassword(8)); // "stysfpbs"

Get Alpha Uppercase Password

Get a random only uppercase alphabets password of n length

const { getAlphaUppercasePassword } = require('random-in');
console.log(getAlphaUppercasePassword(8)); // "ZHKNQYTY"

Get Numeric Password

Get a random numeric password of n length

const { getNumericPassword } = require('random-in');
console.log(getNumericPassword(8)); // "94970880"

Country

Get Random Country

Get Random Country

Get a random country name

const { getCountry } = require('random-in');
console.log(getCountry()); // "United Kingdom"

Color

Get Random Color

Get Random Color

Get a random hex color

const { getRandomColorHex } = require('random-in');
console.log(getRandomColorHex()); // "#94FA02"

Programming

Get random programming stuff

Get random programming language

Get a random programming language

const { getRandomProgrammingLanguage } = require('random-in');
console.log(getRandomProgrammingLanguage()); // "Julia"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].