Here you can find the source of hashToGaussian(int h)
public static double hashToGaussian(int h)
//package com.java2s; //License from project: Open Source License import java.util.Random; public class Main { public static double hashToGaussian(int h) { Random random = new Random(h); for (int i = 0; i < 5; i++) { random.nextGaussian();//w w w.java2 s . c o m random.nextGaussian(); random.nextGaussian(); random.nextGaussian(); random.nextGaussian(); } return random.nextGaussian(); } }