custom<T> static method

T custom<T>(
  1. List<T> data
)

Implementation

static T custom<T>(List<T> data) {
  return data[_random.nextInt(data.length)];
}