From f6cd222464d8fbd0f1964ecd53a821d4a856b1ec Mon Sep 17 00:00:00 2001 From: Emma Goodrich Date: Thu, 6 Oct 2022 08:56:10 -0400 Subject: [PATCH] made a random number generator function (?) --- express/lib/random_function.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 express/lib/random_function.js diff --git a/express/lib/random_function.js b/express/lib/random_function.js new file mode 100644 index 0000000..569a761 --- /dev/null +++ b/express/lib/random_function.js @@ -0,0 +1,7 @@ + +function getRandomNum(min, max) { + return Math.random() * (max - min) + min; +} + + +