File: requirejs.md

package info (click to toggle)
node-chance 2.2.6%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,656 kB
  • sloc: javascript: 16,572; makefile: 4
file content (13 lines) | stat: -rw-r--r-- 250 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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();
  });
```