Version 2.1.4.2 bump

This commit is contained in:
Jaime Martínez Rincón 2017-12-28 22:39:30 +01:00
parent 8d47f52265
commit e03e93b9b9
2 changed files with 4 additions and 2 deletions

View File

@ -11,7 +11,7 @@
<name>PlayerBalancer Plugin</name>
<artifactId>playerbalancer-plugin</artifactId>
<version>2.1.4.1</version>
<version>2.1.4.2</version>
<build>
<finalName>PlayerBalancer</finalName>

View File

@ -3,10 +3,12 @@ package com.jaimemartz.playerbalancer.utils;
import java.security.SecureRandom;
import java.util.List;
public class RandomUtils {
public final class RandomUtils {
private static final SecureRandom instance = new SecureRandom();
public static <T> T random(List<T> list) {
return list.get(instance.nextInt(list.size()));
}
private RandomUtils() {}
}