Skip to content

Instantly share code, notes, and snippets.

Created April 27, 2013 13:52
Show Gist options
  • Save anonymous/5473202 to your computer and use it in GitHub Desktop.
Save anonymous/5473202 to your computer and use it in GitHub Desktop.
package Roulette;
import java.util.Random;
public class NonRandom extends Random {
private long value;
public NonRandom(){
value = 0;
}
@Override
public int next(int bits) {
return (int) value;
}
@Override
public void setSeed(long value) {
this.value = value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment