mirror of
https://github.com/corda/corda.git
synced 2025-02-05 18:49:14 +00:00
Implemented trivial impolementation of java.util.Random.nextDouble()
This commit is contained in:
parent
11d218f956
commit
e23f2bafd5
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user