UNPKG
randomval
Version:
latest (2.0.5)
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Generate random values.
github.com/okunishinishi/node-randomval
okunishinishi/node-randomval
randomval
/
lib
/
random_bool.js
18 lines
(12 loc)
•
260 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/** * Random boolean value. *
@function
randomBool
*
@returns
{
boolean
} - Random boolean. */
'use strict'
const
random =
require
(
'./random'
)
/**
@lends
randomBool */
function
randomBool
(
) {
return
random
() >
random
() }
module
.
exports
= randomBool;