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.js
15 lines
(11 loc)
•
211 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/** * Random val context. *
@function
random
*
@returns
{
number
} Random number between 0 and 1. */
'use strict'
/**
@lends
random */
function
random
(
) {
return
Math
.
random
() }
module
.
exports
= random;