Random Index
import randomIndex from "@rojo2/random-index";
const index = randomIndex([1,2,3,4]) // index will be between 0 and 3
Made with
import randomIndex from "@rojo2/random-index";
const index = randomIndex([1,2,3,4]) // index will be between 0 and 3
Made with
npm i @rojo2/random-index
1
1.0.2
MIT
4.27 kB
5