package projectzombie.util.gl.texture; import java.util.Random; import projectzombie.util.math.random.RandomHelpers; public class TextureReferenceRandom { private static final Random rand = new Random(); private TextureReference[] textures; public TextureReferenceRandom(TextureReference ... textures) { this.textures = textures; } public TextureReference getTexture() { return textures[RandomHelpers.randrange(rand, textures.length)]; } }