Node Package Maid

    @writetome51/get-random-integer-s
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.2 • Public • Published

    getRandomInteger([min, max]): number

    getRandomIntegers(
         howMany,
         [min, max]
    ): number[]

    Examples

    console.log(getRandomInteger([-5, 5]));
    // 3
    
    console.log(getRandomIntegers(5, [-5, 5]));
    // [ -2, 1, -2, -3, 1 ]
    
    console.log(getRandomInteger([0, 10]));
    // 1
    
    console.log(getRandomIntegers(5, [0, 10]));
    // [ 3, 1, 10, 8, 3 ]

    Installation

    npm i @writetome51/get-random-integer-s

    Loading

    import { getRandomInteger, getRandomIntegers} from '@writetome51/get-random-integer-s';

    Install

    npm i @writetome51/get-random-integer-s

    DownloadsWeekly Downloads

    5

    Version

    2.0.2

    License

    MIT

    Unpacked Size

    3.5 kB

    Total Files

    5

    Last publish

    Collaborators

    • writetome51