const randomBoolean = () => Math.random() >= 0.5;

javascript get random boolean

const randomBoolean = () =>{ Math.ceil(Math.random() >= 0.5) }

javascript get random boolean

Similar Code Examples