diff --git a/random-js/random-js-tests.ts b/random-js/random-js-tests.ts
index 0d4d82b7f..9ee80883b 100644
--- a/random-js/random-js-tests.ts
+++ b/random-js/random-js-tests.ts
@@ -1,11 +1,11 @@
///
-///
+///
// 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);