summaryrefslogtreecommitdiff
path: root/gi/posterior-regularisation/prjava/src/arr
diff options
context:
space:
mode:
Diffstat (limited to 'gi/posterior-regularisation/prjava/src/arr')
-rw-r--r--gi/posterior-regularisation/prjava/src/arr/F.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/gi/posterior-regularisation/prjava/src/arr/F.java b/gi/posterior-regularisation/prjava/src/arr/F.java
index c194496e..5821af42 100644
--- a/gi/posterior-regularisation/prjava/src/arr/F.java
+++ b/gi/posterior-regularisation/prjava/src/arr/F.java
@@ -1,12 +1,16 @@
package arr;
+import java.util.Random;
+
public class F {
+ private static Random rng = new Random(); //(9562724l);
+
public static void randomise(double probs[])
{
double z = 0;
for (int i = 0; i < probs.length; ++i)
{
- probs[i] = 3 + Math.random();
+ probs[i] = 3 + rng.nextDouble();
z += probs[i];
}