Search:

Type: Posts; User: copeg

Search: Search took 0.07 seconds.

  1. Replies
    13
    Views
    2,661

    Re: random not working in .class method

    I don't understand. Don't blame the API and the J2SE - it has worked for thousands if not millions of applications. It has been put through the ropes, and I guarantee it works if used appropriately....
  2. Replies
    13
    Views
    2,661

    Re: random not working in .class method

    That is not an SSCCE - see my signature. The code you posted wouldn't even compile:


    myY = Math.random() * 200 - 99;

    should yield a compile time error type mismatch - myY is an int and the...
  3. Replies
    13
    Views
    2,661

    Re: random not working in .class method

    Post the code as an SSCCE that demonstrates the error...the Math class is in the java.lang package which is a default import - there shouldn't be a need to import the java.math package.
Results 1 to 3 of 3