Random Number Generator
<< Other Planets | OtherProjectsTrailIndex | PickMe >>
Random1.java
public class Random1 { double currentNr; public Random1() { double seed = System.currentTimeMillis(); currentNr= seed; } public Random1(double seed) { currentNr=seed; } // public double getRandom() { double nextNr = currentNr + Math.PI; nextNr = nextNr * nextNr; int temp = (int) nextNr; currentNr = nextNr= nextNr-temp; return nextNr; } public int nextInteger(int n) { return 0; } }