import { random } from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/number/index.js";
Returns a random integer ranged from min
to max
(inclusive).
Examples
Example 1
Example 1
import { random } from "@ayonli/jsext/number";
console.log(random(1, 5)); // 1, 2, 3, 4, or 5