1 /*
2 * Copyright (c) 1995, 2022, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26
27 package java.util;
28
29 @SuppressWarnings({"unchecked", "deprecation", "all"})
30 public class Random implements java.util.random.RandomGenerator, java.io.Serializable {
31
Random()32 public Random() { throw new RuntimeException("Stub!"); }
33
Random(long seed)34 public Random(long seed) { throw new RuntimeException("Stub!"); }
35
doubles()36 public java.util.stream.DoubleStream doubles() { throw new RuntimeException("Stub!"); }
37
doubles(double randomNumberOrigin, double randomNumberBound)38 public java.util.stream.DoubleStream doubles(double randomNumberOrigin, double randomNumberBound) { throw new RuntimeException("Stub!"); }
39
doubles(long streamSize)40 public java.util.stream.DoubleStream doubles(long streamSize) { throw new RuntimeException("Stub!"); }
41
doubles(long streamSize, double randomNumberOrigin, double randomNumberBound)42 public java.util.stream.DoubleStream doubles(long streamSize, double randomNumberOrigin, double randomNumberBound) { throw new RuntimeException("Stub!"); }
43
44 @android.annotation.FlaggedApi(com.android.libcore.Flags.FLAG_OPENJDK_21_V1_APIS)
from(java.util.random.RandomGenerator generator)45 public static java.util.Random from(java.util.random.RandomGenerator generator) { throw new RuntimeException("Stub!"); }
46
ints()47 public java.util.stream.IntStream ints() { throw new RuntimeException("Stub!"); }
48
ints(int randomNumberOrigin, int randomNumberBound)49 public java.util.stream.IntStream ints(int randomNumberOrigin, int randomNumberBound) { throw new RuntimeException("Stub!"); }
50
ints(long streamSize)51 public java.util.stream.IntStream ints(long streamSize) { throw new RuntimeException("Stub!"); }
52
ints(long streamSize, int randomNumberOrigin, int randomNumberBound)53 public java.util.stream.IntStream ints(long streamSize, int randomNumberOrigin, int randomNumberBound) { throw new RuntimeException("Stub!"); }
54
longs()55 public java.util.stream.LongStream longs() { throw new RuntimeException("Stub!"); }
56
longs(long streamSize)57 public java.util.stream.LongStream longs(long streamSize) { throw new RuntimeException("Stub!"); }
58
longs(long randomNumberOrigin, long randomNumberBound)59 public java.util.stream.LongStream longs(long randomNumberOrigin, long randomNumberBound) { throw new RuntimeException("Stub!"); }
60
longs(long streamSize, long randomNumberOrigin, long randomNumberBound)61 public java.util.stream.LongStream longs(long streamSize, long randomNumberOrigin, long randomNumberBound) { throw new RuntimeException("Stub!"); }
62
next(int bits)63 protected int next(int bits) { throw new RuntimeException("Stub!"); }
64
nextBoolean()65 public boolean nextBoolean() { throw new RuntimeException("Stub!"); }
66
nextBytes(byte[] bytes)67 public void nextBytes(byte[] bytes) { throw new RuntimeException("Stub!"); }
68
nextDouble()69 public double nextDouble() { throw new RuntimeException("Stub!"); }
70
nextFloat()71 public float nextFloat() { throw new RuntimeException("Stub!"); }
72
nextGaussian()73 public synchronized double nextGaussian() { throw new RuntimeException("Stub!"); }
74
nextInt()75 public int nextInt() { throw new RuntimeException("Stub!"); }
76
nextInt(int bound)77 public int nextInt(int bound) { throw new RuntimeException("Stub!"); }
78
nextLong()79 public long nextLong() { throw new RuntimeException("Stub!"); }
80
setSeed(long seed)81 public synchronized void setSeed(long seed) { throw new RuntimeException("Stub!"); }
82 }
83
84