Nirvana Playing Madonna

    just-random
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.1 • Public • Published

    just-random

    Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.

    🍦 Try it

    npm install just-random
    yarn add just-random

    Return a randomly selected element in an array

    import random from 'just-random';
    
    random([1, 2, 3]);
    // one of [1, 2, 3], at random

    Install

    npm i just-random

    DownloadsWeekly Downloads

    108

    Version

    3.0.1

    License

    MIT

    Unpacked Size

    3.59 kB

    Total Files

    8

    Last publish

    Collaborators

    • angus-c