Android Utililty Methods Array Randomize

List of utility methods to do Array Randomize

Description

The list of methods to do Array Randomize are organized into topic(s).

Method

ListrandomList(List options)
random List
int min = 1;
int max = options.size();
List<String> list = new ArrayList<String>(options);
String temp2 = list.get(max - 1);
list.remove(max - 1);
list.add(1, temp2);
Random r = new Random();
for (int i = 0; i < max; i++) {
...
TgetRandom(T... any)
Gets random value get param any
return any[(int) (Math.random() * any.length)];