What is the easiest way to include 1 using Math.random function?
Since the default is number between inclusive 1 and exclusive 0.
I am going to use my the rand function a lot of times in my code that is why i need an even probability of getting numbers between 0 and 1 [0,1] , inclusive 0 and inclusive 1. Thanks!
Edit: Sorry, big mistake. Exclusive 1, inclusive 0.