/**
* For generating a random number, from 0 to max
*/
public static int generateNumber(int max)
{
return (int)( Math.ceil(Math.random() * max ) - 1) ;
}
generateNumber
Leave a Reply
You must be logged in to post a comment.