mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
fix
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
/// <reference path="random-js.d.ts"/>
|
||||
/// <reference path="node/node.d.ts"/>
|
||||
/// <reference path="../node/node.d.ts"/>
|
||||
|
||||
// Examples taken from the documentation at https://github.com/ckknight/random-js
|
||||
|
||||
import Random = require("random-js");
|
||||
|
||||
// create a Mersenne Twister-19937 that is auto-seeded based on time and other random values
|
||||
import Engine = random.Engine;
|
||||
import Random = random.Random;
|
||||
|
||||
var engine: Engine = Random.engines.mt19937().autoSeed();
|
||||
// create a distribution that will consistently produce integers within inclusive range [0, 99].
|
||||
var distribution: Function = Random.integer(0, 99);
|
||||
|
||||
Reference in New Issue
Block a user