Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What do Math.random() * 1000 and Math.random() * 256 do?
Posted
Updated 23-Jan-10 6:54am
v2

It just generates a random number between 0.0 and the multiplier, in this case 1000 or 256.
 
Share this answer
 
Why would you type those things into a questions forum and not into your compiler, and SEE what they do ? Do you not have any reference books to read ? How can you learn java without any references ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900