how to get random string value from list – android [closed]

Use Random Class to get Random value

Java.util.Random

Get Random index value from list and use it.

index = new Random().nextInt(list.size())
item = list.get(index)

Leave a Comment