randomlibiz
v1.0.0
Published
Lib for getting random letters & digits in an array.
Downloads
2
Readme
randomlibiz
Lib for getting random letters & digits in an array.
Install:
npm i randomlibiz
Consume:
- import the lib:
import mathkit from 'randomlibiz';
let temp_pool = [11,12,13,14,15,16,17,18];
let index = mathkit.get_random_number_index(temp_pool.length);
console.log(temp_pool[index]);
import alphabetkit from 'randomlibiz';
let to_upper_case = true;
let letter_array = alphabetkit.get_letter_list(to_upper_case);//[A,B,...Z]
let letter_array_random = alphabetkit.get_letter_list_random(to_upper_case);//eg. [X,G,...Z]