Implemented trivial impolementation of java.util.Random.nextDouble()

This commit is contained in:
Eric Scharff 2008-02-28 11:02:58 -07:00
parent 11d218f956
commit e23f2bafd5

View File

@ -18,4 +18,8 @@ public class Random {
public int nextInt() { public int nextInt() {
return (int)(Math.random()*Integer.MAX_VALUE); return (int)(Math.random()*Integer.MAX_VALUE);
} }
public double nextDouble() {
return Math.random();
}
} }