UNPKG
chance
Version:
latest (1.1.13)
1.1.13
1.1.12
1.1.11
1.1.10
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.0
1.0.18
1.0.17
1.0.16
1.0.15
1.0.14
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.8.0
0.7.7
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.9
0.5.8
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.3
0.4.2
0.4.0
0.3.3
0.3.1
0.3.0
0.2.1
0.2.0
0.1.1
0.1.0
Chance - Utility library to generate anything random
chancejs.com
chancejs/chancejs
chance
/
docs
/
usage
/
requirejs.md
14 lines
(10 loc)
•
250 B
Markdown
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# requirejs
Load Chance with <a href=
"http://requirejs.org"
>RequireJS</a> ```js
require
([
'Chance'
],
function
(
Chance
)
{
// Instantiate
var
chance =
new
Chance
();
// Then use it:
var
my_random_integer = chance.
integer
(); }); ```