+ 2
Random array item in java(sorry for bad english)
Hello everybody, I have written a programm together with my friends, but there is another feature we want to add... There is an list in our programm and the user can pick a random element with a command. Is there an option to do this??
3 Answers
+ 16
take random number as index ... from 0 to (no. of elements-1) & use it to get random element using that index
+ 3
yes you can, just add some HTML codes into it, like adding buttons for users to pick an element