This commit is contained in:
Daniel Mills
2021-08-02 01:14:52 -04:00
parent ca035f9447
commit eb82b44726
51 changed files with 287 additions and 524 deletions

View File

@@ -625,14 +625,11 @@ public class KList<T> extends ArrayList<T> implements List<T> {
return get(M.irand(0, last()));
}
public KList<T> popRandom(RNG rng, int c)
{
public KList<T> popRandom(RNG rng, int c) {
KList<T> m = new KList<>();
for(int i = 0; i < c; i++)
{
if(isEmpty())
{
for (int i = 0; i < c; i++) {
if (isEmpty()) {
break;
}