randBool.js 202 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 var random = require('./random'); /** * returns a random boolean value (true or false) */ function randBool(){ return random() >= 0.5; } module.exports = randBool;