From 67a8bc48f56ad44f753095c6729ed407a49edd41 Mon Sep 17 00:00:00 2001 From: Karan <50290386+Sonawane-Karan26@users.noreply.github.com> Date: Thu, 25 Nov 2021 19:54:35 +0530 Subject: [PATCH] cleanup --- Chapter 8/exercise 4 | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 Chapter 8/exercise 4 diff --git a/Chapter 8/exercise 4 b/Chapter 8/exercise 4 deleted file mode 100644 index c07bcca..0000000 --- a/Chapter 8/exercise 4 +++ /dev/null @@ -1,13 +0,0 @@ -console.log(Math.ceil(5.7)); -console.log(Math.floor(5.7)); -console.log(Math.round(5.7)); -console.log(Math.random()); -console.log(Math.floor(Math.random()*11)); // 0-10 -console.log(Math.floor(Math.random()*10)+1); // 1-10; -console.log(Math.floor(Math.random()*100)+1); // 1-100; -function ranNum(min, max) { - return Math.floor(Math.random() * (max - min + 1)) + min; -} -for (let x = 0; x < 100; x++) { - console.log(ranNum(1, 100)); -}