Created
April 27, 2013 13:52
-
-
Save anonymous/5473202 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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