View Single Post
  #1 (permalink)  
Old 11-23-2007, 10:24 PM
naxalyte naxalyte is offline
Member
 
Join Date: Nov 2007
Posts: 4
naxalyte is on a distinguished road
What does this line of code mean?
Could someone please explain why in the following line of code, int is used within brackets after the equals sign?

Code:
int x = (int)((width/2) + (0.5-Math.random())*width);
Reply With Quote
Sponsored Links