001/*
002 * Copyright 2010-2015 Institut Pasteur.
003 * 
004 * This file is part of Icy.
005 * 
006 * Icy is free software: you can redistribute it and/or modify
007 * it under the terms of the GNU General Public License as published by
008 * the Free Software Foundation, either version 3 of the License, or
009 * (at your option) any later version.
010 * 
011 * Icy is distributed in the hope that it will be useful,
012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
014 * GNU General Public License for more details.
015 * 
016 * You should have received a copy of the GNU General Public License
017 * along with Icy. If not, see <http://www.gnu.org/licenses/>.
018 */
019package icy.common;
020
021/**
022 * @deprecated Use {@link icy.util.Random} instead
023 */
024public class Random
025{
026    /**
027     * @deprecated Use {@link icy.util.Random#nextInt()} instead
028     */
029    public static int nextInt()
030    {
031        return icy.util.Random.nextInt();
032    }
033
034    /**
035     * @deprecated Use {@link icy.util.Random#nextInt(int)} instead
036     */
037    public static int nextInt(int n)
038    {
039        return icy.util.Random.nextInt(n);
040    }
041
042    /**
043     * @deprecated Use {@link icy.util.Random#nextBoolean()} instead
044     */
045    public static boolean nextBoolean()
046    {
047        return icy.util.Random.nextBoolean();
048    }
049
050    /**
051     * @deprecated Use {@link icy.util.Random#nextDouble()} instead
052     */
053    public static double nextDouble()
054    {
055        return icy.util.Random.nextDouble();
056    }
057
058    /**
059     * @deprecated Use {@link icy.util.Random#nextFloat()} instead
060     */
061    public static float nextFloat()
062    {
063        return icy.util.Random.nextFloat();
064    }
065
066    /**
067     * @deprecated Use {@link icy.util.Random#nextLong()} instead
068     */
069    public static long nextLong()
070    {
071        return icy.util.Random.nextLong();
072    }
073}