Compaction.

This commit is contained in:
Michael Bayne
2011-08-23 11:15:13 -07:00
parent 7bb7ee2ad8
commit 7e51d4c624
@@ -185,11 +185,7 @@ public class Randoms
public <T> T pick (T[] array, T ifEmpty) public <T> T pick (T[] array, T ifEmpty)
{ {
int size = array.length; int size = array.length;
if (size == 0) { return (size == 0) ? ifEmpty : array[_r.nextInt(size)];
return ifEmpty;
}
return array[_r.nextInt(size)];
} }
/** /**