How to create a random float in javascript?

The below javascript code will create a random float and shows it on the alert box. The Math.random method from javascript is very useful when it comes to creating a random number with javascript.

var random_v = Math.random();

The code above will cause the below outcome.

js random
js random