From c51648a2ddd3b6e8b0396c21ec3f6660817e6843 Mon Sep 17 00:00:00 2001 From: tommoyang Date: Sun, 6 Dec 2015 04:21:31 +1300 Subject: [PATCH] Added PHP random logic --- anything.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/anything.js b/anything.js index ca1c0a7..665a20a 100644 --- a/anything.js +++ b/anything.js @@ -83,6 +83,10 @@ // guaranteed to be random } + var getTrueRandomNumber = function () { + return getRandomNumber(); // I don't know what you were expecting + } + var everything = function() { return 42; @@ -147,6 +151,7 @@ anything.prototype.isNumber5 = isNumber5; anything.prototype.addRealFunctionalityOnTheFly = addRealFunctionalityOnTheFly; anything.prototype.getRandomNumber = getRandomNumber; + anything.prototype.getTrueRandomNumber = getTrueRandomNumber; anything.prototype.everything = everything; anything.prototype.twoString = twoString; anything.prototype.fizzbuzz = fizzbuzz;