Quote (zackill4 @ Sep 4 2013 08:34pm)
Whelp, apparently I'm not familiar with the rand library...
try this
rand.nextDouble()*(19.95-10.0) + 10.0
The problem here is that nextDouble does not take a parameter; it spits out a double between 0 and 1
package pricegen;
//Price gen $10-19.95
import java.util.Random;
public class PriceGen {
public static void main(String[] args) {
Random randNumb = new Random();
rand.nextDouble()*(19.95-10.0) + 10.0;
System.out.println(randomNumb);
this is what i have now it is saying that it is not a statement.....and when i run it it says run:
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - not a statement
at pricegen.PriceGen.main(PriceGen.java:12)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)