hello developers welcome back
in this short video we are going to learn about Math.random() function
JavaScript makes it really easy to generate and use pseudo-random numbers. By using the built-in Math.random() function, you are able to achieve just that.
Math.random() will give you a random floating point number from 0 to 1 (non-inclusive of 1) and so to convert that result into a whole number, you'll need to implement some basic math.
In this video I show you a simple example of how to generate a random number and also how to generate a random whole number (or integer) between a range of 1 and X.
number generator. javascript random number without repeat. The random() method returns a random number from 0 (inclusive) up to but not including 1 (exclusive).
you can use this random number to make a quiz website where you can throw random questions every time.
if you found this video useful please consider sharing subscribing and give it a like i'll see you in the next video
talk to me
Twitter: / srikanthsatheli