Generate Whole Number with Javascript

Ok it didn’t return a whole number. I’m not sure why and I did checked w3school about Javascrpt’s random method for example. It’s the same explanation as you just gave. it’s really strange.