# randomNumber
Useimport { randomNumber } from 'util-snippets'
/**
* Example:randomNumber([3, 7, 9, 11]) // [9
*/
randomNumber(array)
const randomNumber = arr => arr[Math.floor(Math.random() * arr.length)];
import { randomNumber } from 'util-snippets'
/**
* Example:randomNumber([3, 7, 9, 11]) // [9
*/
randomNumber(array)
const randomNumber = arr => arr[Math.floor(Math.random() * arr.length)];