B
Bob
I'm new to programming. This is a school project that I'm working on.
At one part of this project, I need to scramble a String array to get
the words in array mixed up. I know how to use Math.random() to get
random numbers between 0 and the length of the array, but it will give
me repeated random numbers. How can I get unique random numbers? Also
I have those words displayed as buttons in an applet, any hint how can
I swap 2 words when 2 buttons are clicked? Any help would be greatly
appreciated.
At one part of this project, I need to scramble a String array to get
the words in array mixed up. I know how to use Math.random() to get
random numbers between 0 and the length of the array, but it will give
me repeated random numbers. How can I get unique random numbers? Also
I have those words displayed as buttons in an applet, any hint how can
I swap 2 words when 2 buttons are clicked? Any help would be greatly
appreciated.