001package org.jblas.util;
002
003/**
004 * Created by IntelliJ IDEA.
005 * User: mikio
006 * Date: 6/24/11
007 * Time: 10:45 AM
008 * To change this template use File | Settings | File Templates.
009 */
010
011public class Random {
012    private static java.util.Random r = new java.util.Random();
013
014    public static void seed(long newSeed) {
015        r = new java.util.Random(newSeed);
016    }
017
018    public static double nextDouble() {
019        return r.nextDouble();
020    }
021
022    public static float nextFloat() {
023        return r.nextFloat();
024    }
025
026    public static int nextInt(int max) {
027        return r.nextInt(max);
028    }
029
030    public static double nextGaussian() {
031        return r.nextGaussian();
032    }
033}