(API)Randomized Problem ..please suggest me
I'm very new to java and i have this weird problem for using java.util.Random.
I have created a method in which the question specifically tells to use double as a parameter. What i did was
public int Number(double end)
Random rand = new Random();
int start = 0;
int output= rand.nextInt( end - start+ 1) + start;
But its not working. I need to find random number between 0-88.9 and the return value should be integer. Please help me.:confused: