v0.4.3: implement seeds into levelgen (not currently user enterable)

This commit is contained in:
Evan Debenham
2016-09-23 21:00:17 -04:00
parent 84f61ff37e
commit 1565030825
7 changed files with 201 additions and 30 deletions
@@ -22,6 +22,7 @@
package com.watabou.noosa;
import com.watabou.noosa.particles.Emitter;
import com.watabou.utils.Random;
import java.util.ArrayList;
@@ -275,7 +276,7 @@ public class Group extends Gizmo {
public synchronized Gizmo random() {
if (length > 0) {
return members.get( (int)(Math.random() * length) );
return members.get( Random.Int(length) );
} else {
return null;
}