Search:

Type: Posts; User: JakeM1130

Search: Search took 0.13 seconds.

  1. Replies
    17
    Views
    1,822

    Re: Help with simple math game coding

    I'm on Vista and Java 1.6. Note that's not a full code though. In full, it would look something like


    import java.awt.*;
    import java.lang.Math;

    public class RandomNumberGenerator {
    public...
  2. Replies
    17
    Views
    1,822

    Re: Help with simple math game coding

    I'd recommend just using the math library approach


    import java.lang.Math;

    addsubnumber1 = (int) Math.floor(Math.random()*21);
    addsubnumber2 = (int) Math.floor(Math.random()*21);
Results 1 to 2 of 2