# randomNumber

Use
import { randomNumber } from 'util-snippets'

/**
 * Example:randomNumber([3, 7, 9, 11]) // [9
 */

randomNumber(array)
Code
const randomNumber = arr => arr[Math.floor(Math.random() * arr.length)];