Search:

Type: Posts; User: djl1990

Search: Search took 0.37 seconds.

  1. Thread: Math.Random()

    by djl1990
    Replies
    4
    Views
    1,494

    Re: Math.Random()

    to use the Math.Random() class firstly:

    import the Random class:
    import java.util.Random;

    then in your main class section to create a Random object:
    Random rand = new Random();

    then to...
  2. Thread: Math.Random()

    by djl1990
    Replies
    4
    Views
    1,494

    Re: Math.Random()

    can you explain the three options: 218, 312, 731. Do you want the program to randomly pick one of these 3 and then add 8 more random digits to create a 11 digit number?
Results 1 to 2 of 2