Skip to content

Commit 55e0299

Browse files
author
Wakidur Rahaman
committed
prime
1 parent be6d35c commit 55e0299

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/problems/isPrime-01.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,8 @@ function primeFactors(n: number) {
5757
console.log(n);
5858
}
5959
} // O(sqrt(n))
60+
61+
// Random Number Generator
62+
Math.random() * 100; // floats between 0 and 100;
63+
Math.random() * 25 + 5; // floats between 5 and 30
64+
Math.random() * 10 - 100; // floats between -100 and -90

0 commit comments

Comments
 (0)