Ok I tried compiling the program with TextPad and it compiled fine but no matter what parameters I set up between the parenthesis example:
random = generate.nextInt(101) - 1;
System.out.println(random); // to check
... the random number is always 0, what is wrong with this???