Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    4
    Views
    1,808

    Re: Picking Random Element from Array

    Looks like it might work. Write a loop and print out the returned value a few times to see what you get.
    No need to create a new Random object everytime you want a number. Make rangen a class...
  2. Replies
    4
    Views
    1,808

    Re: Picking Random Element from Array

    Use the Random class's method to choose an index value between 0 and the length of the array-1
Results 1 to 2 of 2