Get Random String From Array List

[Solved] Get Random String From Array List | Lisp - Code Explorer | yomemimo.com
Question : get random String from array list

Answered by : angry-ape-kr1i0r8fz32m

 Random r = new Random(); int randomitem = r.nextInt(myList.size()); String randomElement = myList.get(randomitem);

Source : https://stackoverflow.com/questions/6726963/random-string-from-string-array-list/6726973 | Last Update : Sun, 29 Nov 20

Answers related to get random string from array list

Code Explorer Popular Question For Lisp