Note: Math.random() does not provide cryptographically secure random numbers. Do not use them for anything related to security.
Syntax
Math.random();
Example
Math.random(); //0 to 1 Numbers
(Math.floor(Math.random() * 100) + 1) // 1 to 100 Numbers
Example Program:- (Editor)
Editor is Loading...
Advertisement
0 comments:
Post a Comment