diff options
author | Leonard Kugis <leonard@kug.is> | 2022-04-25 18:50:36 +0200 |
---|---|---|
committer | Leonard Kugis <leonard@kug.is> | 2022-04-25 18:50:36 +0200 |
commit | 9e2ddeb55321b09086a5a27254197d783847e6e3 (patch) | |
tree | 620e4a7b326df2a77fff51aff390e0a6bef43631 /src/main/java/com/encrox/zombie/Misc.java |
Diffstat (limited to 'src/main/java/com/encrox/zombie/Misc.java')
-rwxr-xr-x | src/main/java/com/encrox/zombie/Misc.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/com/encrox/zombie/Misc.java b/src/main/java/com/encrox/zombie/Misc.java new file mode 100755 index 0000000..feeab8b --- /dev/null +++ b/src/main/java/com/encrox/zombie/Misc.java @@ -0,0 +1,12 @@ +package com.encrox.zombie;
+
+import java.util.Random;
+
+public class Misc {
+
+ public static Object random(Object[] arr) {
+ int rnd = new Random().nextInt(arr.length);
+ return arr[rnd];
+ }
+
+}
|