advanced code snippet search
The_Englishman on 05/02/07
number random generate
05/02/07 01:04pm05/02/07 01:04pm05/02/07 10:53am
2 people have marked this snippet as a favorite
The_Englishmanbsteadman
/*** For generating a random number, from 0 to max*/public static int generateNumber(int max){ return (int)( Math.ceil(Math.random() * max ) - 1) ;}
Report this snippet Tweet
Comment:
You need to login to post a comment.