Random number in range

    0

    0

    UltiRequiem

    Get a random number specifying the minimum number and the max one.

    /**
     * Returns a random number between min (inclusive) and max (exclusive)
     * Returns a random number between min (inclusive) and max (exclusive)
     */
     */
    function getRandomArbitrary(min, max) {
        return Math.random() * (max - min) + min;
    }
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.