import randomTake from "@rojo2/random-take";
const listOfNumbers = [1,2,3,4];
const number = randomTake(listOfNumbers); // random value from listOfNumbers
IMPORTANT: The difference between this and random-pick is that
this function removes the element from the array while random-pick
doesn't.
Made with ❤️ by ROJO 2 (http://rojo2.com)