public class java.util.Random implements java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.util.Random
super_class: java.lang.Object
{
static final long serialVersionUID;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 3905348978240129619
private final java.util.concurrent.atomic.AtomicLong seed;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final long multiplier;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 25214903917
private static final long addend;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 11
private static final long mask;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 281474976710655
private static final double DOUBLE_UNIT;
descriptor: D
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1.1102230246251565E-16
static final java.lang.String BadBound;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "bound must be positive"
static final java.lang.String BadRange;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "bound must be greater than origin"
static final java.lang.String BadSize;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "size must be non-negative"
private static final java.util.concurrent.atomic.AtomicLong seedUniquifier;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private double nextNextGaussian;
descriptor: D
flags: (0x0002) ACC_PRIVATE
private boolean haveNextNextGaussian;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private static final java.io.ObjectStreamField[] serialPersistentFields;
descriptor: [Ljava/io/ObjectStreamField;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.misc.Unsafe unsafe;
descriptor: Ljdk/internal/misc/Unsafe;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long seedOffset;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=1, args_size=0
0: new java.util.concurrent.atomic.AtomicLong
dup
ldc 8682522807148012
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:(J)V
1: putstatic java.util.Random.seedUniquifier:Ljava/util/concurrent/atomic/AtomicLong;
2: iconst_3
anewarray java.io.ObjectStreamField
dup
iconst_0
3: new java.io.ObjectStreamField
dup
ldc "seed"
getstatic java.lang.Long.TYPE:Ljava/lang/Class;
invokespecial java.io.ObjectStreamField.<init>:(Ljava/lang/String;Ljava/lang/Class;)V
aastore
dup
iconst_1
4: new java.io.ObjectStreamField
dup
ldc "nextNextGaussian"
getstatic java.lang.Double.TYPE:Ljava/lang/Class;
invokespecial java.io.ObjectStreamField.<init>:(Ljava/lang/String;Ljava/lang/Class;)V
aastore
dup
iconst_2
5: new java.io.ObjectStreamField
dup
ldc "haveNextNextGaussian"
getstatic java.lang.Boolean.TYPE:Ljava/lang/Class;
invokespecial java.io.ObjectStreamField.<init>:(Ljava/lang/String;Ljava/lang/Class;)V
aastore
6: putstatic java.util.Random.serialPersistentFields:[Ljava/io/ObjectStreamField;
7: invokestatic jdk.internal.misc.Unsafe.getUnsafe:()Ljdk/internal/misc/Unsafe;
putstatic java.util.Random.unsafe:Ljdk/internal/misc/Unsafe;
8: getstatic java.util.Random.unsafe:Ljdk/internal/misc/Unsafe;
9: ldc Ljava/util/Random;
ldc "seed"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
10: invokevirtual jdk.internal.misc.Unsafe.objectFieldOffset:(Ljava/lang/reflect/Field;)J
putstatic java.util.Random.seedOffset:J
11: goto 14
StackMap locals:
StackMap stack: java.lang.Exception
12: astore 0
start local 0 13: new java.lang.Error
dup
aload 0
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 0 14: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
13 14 0 ex Ljava/lang/Exception;
Exception table:
from to target type
8 11 12 Class java.lang.Exception
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.util.Random.seedUniquifier:()J
invokestatic java.lang.System.nanoTime:()J
lxor
invokespecial java.util.Random.<init>:(J)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/Random;
private static long seedUniquifier();
descriptor: ()J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=0
0: StackMap locals:
StackMap stack:
getstatic java.util.Random.seedUniquifier:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lstore 0
start local 0 1: lload 0
ldc 1181783497276652981
lmul
lstore 2
start local 2 2: getstatic java.util.Random.seedUniquifier:Ljava/util/concurrent/atomic/AtomicLong;
lload 0
lload 2
invokevirtual java.util.concurrent.atomic.AtomicLong.compareAndSet:(JJ)Z
ifeq 0
3: lload 2
lreturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 current J
2 4 2 next J
public void <init>(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield java.util.Random.haveNextNextGaussian:Z
2: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Ljava/util/Random;
if_acmpne 4
3: aload 0
new java.util.concurrent.atomic.AtomicLong
dup
lload 1
invokestatic java.util.Random.initialScramble:(J)J
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:(J)V
putfield java.util.Random.seed:Ljava/util/concurrent/atomic/AtomicLong;
goto 6
4: StackMap locals: java.util.Random long
StackMap stack:
aload 0
new java.util.concurrent.atomic.AtomicLong
dup
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
putfield java.util.Random.seed:Ljava/util/concurrent/atomic/AtomicLong;
5: aload 0
lload 1
invokevirtual java.util.Random.setSeed:(J)V
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/Random;
0 7 1 seed J
MethodParameters:
Name Flags
seed
private static long initialScramble(long);
descriptor: (J)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: lload 0
ldc 25214903917
lxor
ldc 281474976710655
land
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 seed J
MethodParameters:
Name Flags
seed
public synchronized void setSeed(long);
descriptor: (J)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield java.util.Random.seed:Ljava/util/concurrent/atomic/AtomicLong;
lload 1
invokestatic java.util.Random.initialScramble:(J)J
invokevirtual java.util.concurrent.atomic.AtomicLong.set:(J)V
1: aload 0
iconst_0
putfield java.util.Random.haveNextNextGaussian:Z
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/util/Random;
0 3 1 seed J
MethodParameters:
Name Flags
seed
protected int next(int);
descriptor: (I)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield java.util.Random.seed:Ljava/util/concurrent/atomic/AtomicLong;
astore 6
start local 6 1: StackMap locals: java.util.Random int top top top top java.util.concurrent.atomic.AtomicLong
StackMap stack:
aload 6
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lstore 2
start local 2 2: lload 2
ldc 25214903917
lmul
ldc 11
ladd
ldc 281474976710655
land
lstore 4
start local 4 3: aload 6
lload 2
lload 4
invokevirtual java.util.concurrent.atomic.AtomicLong.compareAndSet:(JJ)Z
ifeq 1
4: lload 4
bipush 48
iload 1
isub
lushr
l2i
ireturn
end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/util/Random;
0 5 1 bits I
2 5 2 oldseed J
3 5 4 nextseed J
1 5 6 seed Ljava/util/concurrent/atomic/AtomicLong;
MethodParameters:
Name Flags
bits
public void nextBytes(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 1
arraylength
istore 3
start local 3 2: goto 10
3: StackMap locals: int int
StackMap stack:
aload 0
invokevirtual java.util.Random.nextInt:()I
istore 4
start local 4 4: iload 3
iload 2
isub
iconst_4
invokestatic java.lang.Math.min:(II)I
istore 5
start local 5 5: goto 8
6: StackMap locals: int int
StackMap stack:
aload 1
iload 2
iinc 2 1
iload 4
i2b
bastore
7: iload 4
bipush 8
ishr
istore 4
StackMap locals:
StackMap stack:
8: iload 5
iinc 5 -1
9: ifgt 6
end local 5 end local 4 10: StackMap locals:
StackMap stack:
iload 2
iload 3
if_icmplt 3
end local 3 end local 2 11: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljava/util/Random;
0 12 1 bytes [B
1 11 2 i I
2 11 3 len I
4 10 4 rnd I
5 10 5 n I
MethodParameters:
Name Flags
bytes
final long internalNextLong(long, long);
descriptor: (JJ)J
flags: (0x0010) ACC_FINAL
Code:
stack=6, locals=13, args_size=3
start local 0 start local 1 start local 3 0: aload 0
invokevirtual java.util.Random.nextLong:()J
lstore 5
start local 5 1: lload 1
lload 3
lcmp
ifge 16
2: lload 3
lload 1
lsub
lstore 7
start local 7 3: lload 7
lconst_1
lsub
lstore 9
start local 9 4: lload 7
lload 9
land
lconst_0
lcmp
ifne 6
5: lload 5
lload 9
land
lload 1
ladd
lstore 5
goto 16
6: StackMap locals: long long long
StackMap stack:
lload 7
lconst_0
lcmp
ifle 15
7: lload 5
iconst_1
lushr
lstore 11
start local 11 8: goto 10
9: StackMap locals: long
StackMap stack:
aload 0
invokevirtual java.util.Random.nextLong:()J
iconst_1
lushr
lstore 11
10: StackMap locals:
StackMap stack:
lload 11
lload 9
ladd
lload 11
lload 7
lrem
dup2
lstore 5
lsub
lconst_0
11: lcmp
iflt 9
end local 11 12: lload 5
lload 1
ladd
lstore 5
13: goto 16
14: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.util.Random.nextLong:()J
lstore 5
15: StackMap locals:
StackMap stack:
lload 5
lload 1
lcmp
iflt 14
lload 5
lload 3
lcmp
ifge 14
end local 9 end local 7 16: StackMap locals:
StackMap stack:
lload 5
lreturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljava/util/Random;
0 17 1 origin J
0 17 3 bound J
1 17 5 r J
3 16 7 n J
4 16 9 m J
8 12 11 u J
MethodParameters:
Name Flags
origin
bound
final int internalNextInt(int, int);
descriptor: (II)I
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iload 2
if_icmpge 8
1: iload 2
iload 1
isub
istore 3
start local 3 2: iload 3
ifle 4
3: aload 0
iload 3
invokevirtual java.util.Random.nextInt:(I)I
iload 1
iadd
ireturn
4: StackMap locals: int
StackMap stack:
aload 0
invokevirtual java.util.Random.nextInt:()I
istore 4
start local 4 5: iload 4
iload 1
if_icmplt 4
iload 4
iload 2
6: if_icmpge 4
7: iload 4
ireturn
end local 4 end local 3 8: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.util.Random.nextInt:()I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/util/Random;
0 9 1 origin I
0 9 2 bound I
2 8 3 n I
5 8 4 r I
MethodParameters:
Name Flags
origin
bound
final double internalNextDouble(double, double);
descriptor: (DD)D
flags: (0x0010) ACC_FINAL
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 3 0: aload 0
invokevirtual java.util.Random.nextDouble:()D
dstore 5
start local 5 1: dload 1
dload 3
dcmpg
ifge 5
2: dload 5
dload 3
dload 1
dsub
dmul
dload 1
dadd
dstore 5
3: dload 5
dload 3
dcmpl
iflt 5
4: dload 3
invokestatic java.lang.Double.doubleToLongBits:(D)J
lconst_1
lsub
invokestatic java.lang.Double.longBitsToDouble:(J)D
dstore 5
5: StackMap locals: double
StackMap stack:
dload 5
dreturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/util/Random;
0 6 1 origin D
0 6 3 bound D
1 6 5 r D
MethodParameters:
Name Flags
origin
bound
public int nextInt();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
bipush 32
invokevirtual java.util.Random.next:(I)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/Random;
public int nextInt(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: iload 1
ifgt 2
1: new java.lang.IllegalArgumentException
dup
ldc "bound must be positive"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
bipush 31
invokevirtual java.util.Random.next:(I)I
istore 2
start local 2 3: iload 1
iconst_1
isub
istore 3
start local 3 4: iload 1
iload 3
iand
ifne 6
5: iload 1
i2l
iload 2
i2l
lmul
bipush 31
lshr
l2i
istore 2
goto 11
6: StackMap locals: int int
StackMap stack:
iload 2
istore 4
start local 4 7: goto 9
8: StackMap locals: int
StackMap stack:
aload 0
bipush 31
invokevirtual java.util.Random.next:(I)I
istore 4
9: StackMap locals:
StackMap stack:
iload 4
iload 4
iload 1
irem
dup
istore 2
isub
iload 3
iadd
10: iflt 8
end local 4 11: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljava/util/Random;
0 12 1 bound I
3 12 2 r I
4 12 3 m I
7 11 4 u I
MethodParameters:
Name Flags
bound
public long nextLong();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
bipush 32
invokevirtual java.util.Random.next:(I)I
i2l
bipush 32
lshl
aload 0
bipush 32
invokevirtual java.util.Random.next:(I)I
i2l
ladd
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/Random;
public boolean nextBoolean();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokevirtual java.util.Random.next:(I)I
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/Random;
public float nextFloat();
descriptor: ()F
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
bipush 24
invokevirtual java.util.Random.next:(I)I
i2f
ldc 1.6777216E7
fdiv
freturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/Random;
public double nextDouble();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
bipush 26
invokevirtual java.util.Random.next:(I)I
i2l
bipush 27
lshl
aload 0
bipush 27
invokevirtual java.util.Random.next:(I)I
i2l
ladd
l2d
ldc 1.1102230246251565E-16
dmul
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/Random;
public synchronized double nextGaussian();
descriptor: ()D
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=6, locals=9, args_size=1
start local 0 0: aload 0
getfield java.util.Random.haveNextNextGaussian:Z
ifeq 3
1: aload 0
iconst_0
putfield java.util.Random.haveNextNextGaussian:Z
2: aload 0
getfield java.util.Random.nextNextGaussian:D
dreturn
3: StackMap locals:
StackMap stack:
ldc 2.0
aload 0
invokevirtual java.util.Random.nextDouble:()D
dmul
dconst_1
dsub
dstore 1
start local 1 4: ldc 2.0
aload 0
invokevirtual java.util.Random.nextDouble:()D
dmul
dconst_1
dsub
dstore 3
start local 3 5: dload 1
dload 1
dmul
dload 3
dload 3
dmul
dadd
dstore 5
start local 5 6: dload 5
dconst_1
dcmpl
ifge 3
dload 5
dconst_0
dcmpl
ifeq 3
7: ldc -2.0
dload 5
invokestatic java.lang.StrictMath.log:(D)D
dmul
dload 5
ddiv
invokestatic java.lang.StrictMath.sqrt:(D)D
dstore 7
start local 7 8: aload 0
dload 3
dload 7
dmul
putfield java.util.Random.nextNextGaussian:D
9: aload 0
iconst_1
putfield java.util.Random.haveNextNextGaussian:Z
10: dload 1
dload 7
dmul
dreturn
end local 7 end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljava/util/Random;
4 11 1 v1 D
5 11 3 v2 D
6 11 5 s D
8 11 7 multiplier D
public java.util.stream.IntStream ints(long);
descriptor: (J)Ljava/util/stream/IntStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=3, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "size must be non-negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new java.util.Random$RandomIntsSpliterator
dup
3: aload 0
lconst_0
lload 1
ldc 2147483647
iconst_0
4: invokespecial java.util.Random$RandomIntsSpliterator.<init>:(Ljava/util/Random;JJII)V
5: iconst_0
6: invokestatic java.util.stream.StreamSupport.intStream:(Ljava/util/Spliterator$OfInt;Z)Ljava/util/stream/IntStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/Random;
0 7 1 streamSize J
MethodParameters:
Name Flags
streamSize
public java.util.stream.IntStream ints();
descriptor: ()Ljava/util/stream/IntStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=1, args_size=1
start local 0 0: new java.util.Random$RandomIntsSpliterator
dup
1: aload 0
lconst_0
ldc 9223372036854775807
ldc 2147483647
iconst_0
2: invokespecial java.util.Random$RandomIntsSpliterator.<init>:(Ljava/util/Random;JJII)V
3: iconst_0
4: invokestatic java.util.stream.StreamSupport.intStream:(Ljava/util/Spliterator$OfInt;Z)Ljava/util/stream/IntStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/util/Random;
public java.util.stream.IntStream ints(long, int, int);
descriptor: (JII)Ljava/util/stream/IntStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=5, args_size=4
start local 0 start local 1 start local 3 start local 4 0: lload 1
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "size must be non-negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 3
iload 4
if_icmplt 4
3: new java.lang.IllegalArgumentException
dup
ldc "bound must be greater than origin"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
new java.util.Random$RandomIntsSpliterator
dup
5: aload 0
lconst_0
lload 1
iload 3
iload 4
6: invokespecial java.util.Random$RandomIntsSpliterator.<init>:(Ljava/util/Random;JJII)V
7: iconst_0
8: invokestatic java.util.stream.StreamSupport.intStream:(Ljava/util/Spliterator$OfInt;Z)Ljava/util/stream/IntStream;
areturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/util/Random;
0 9 1 streamSize J
0 9 3 randomNumberOrigin I
0 9 4 randomNumberBound I
MethodParameters:
Name Flags
streamSize
randomNumberOrigin
randomNumberBound
public java.util.stream.IntStream ints(int, int);
descriptor: (II)Ljava/util/stream/IntStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iload 2
if_icmplt 2
1: new java.lang.IllegalArgumentException
dup
ldc "bound must be greater than origin"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new java.util.Random$RandomIntsSpliterator
dup
3: aload 0
lconst_0
ldc 9223372036854775807
iload 1
iload 2
4: invokespecial java.util.Random$RandomIntsSpliterator.<init>:(Ljava/util/Random;JJII)V
5: iconst_0
6: invokestatic java.util.stream.StreamSupport.intStream:(Ljava/util/Spliterator$OfInt;Z)Ljava/util/stream/IntStream;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/Random;
0 7 1 randomNumberOrigin I
0 7 2 randomNumberBound I
MethodParameters:
Name Flags
randomNumberOrigin
randomNumberBound
public java.util.stream.LongStream longs(long);
descriptor: (J)Ljava/util/stream/LongStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=11, locals=3, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "size must be non-negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new java.util.Random$RandomLongsSpliterator
dup
3: aload 0
lconst_0
lload 1
ldc 9223372036854775807
lconst_0
4: invokespecial java.util.Random$RandomLongsSpliterator.<init>:(Ljava/util/Random;JJJJ)V
5: iconst_0
6: invokestatic java.util.stream.StreamSupport.longStream:(Ljava/util/Spliterator$OfLong;Z)Ljava/util/stream/LongStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/Random;
0 7 1 streamSize J
MethodParameters:
Name Flags
streamSize
public java.util.stream.LongStream longs();
descriptor: ()Ljava/util/stream/LongStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=11, locals=1, args_size=1
start local 0 0: new java.util.Random$RandomLongsSpliterator
dup
1: aload 0
lconst_0
ldc 9223372036854775807
ldc 9223372036854775807
lconst_0
2: invokespecial java.util.Random$RandomLongsSpliterator.<init>:(Ljava/util/Random;JJJJ)V
3: iconst_0
4: invokestatic java.util.stream.StreamSupport.longStream:(Ljava/util/Spliterator$OfLong;Z)Ljava/util/stream/LongStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/util/Random;
public java.util.stream.LongStream longs(long, long, long);
descriptor: (JJJ)Ljava/util/stream/LongStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=11, locals=7, args_size=4
start local 0 start local 1 start local 3 start local 5 0: lload 1
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "size must be non-negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
lload 3
lload 5
lcmp
iflt 4
3: new java.lang.IllegalArgumentException
dup
ldc "bound must be greater than origin"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
new java.util.Random$RandomLongsSpliterator
dup
5: aload 0
lconst_0
lload 1
lload 3
lload 5
6: invokespecial java.util.Random$RandomLongsSpliterator.<init>:(Ljava/util/Random;JJJJ)V
7: iconst_0
8: invokestatic java.util.stream.StreamSupport.longStream:(Ljava/util/Spliterator$OfLong;Z)Ljava/util/stream/LongStream;
areturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/util/Random;
0 9 1 streamSize J
0 9 3 randomNumberOrigin J
0 9 5 randomNumberBound J
MethodParameters:
Name Flags
streamSize
randomNumberOrigin
randomNumberBound
public java.util.stream.LongStream longs(long, long);
descriptor: (JJ)Ljava/util/stream/LongStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=11, locals=5, args_size=3
start local 0 start local 1 start local 3 0: lload 1
lload 3
lcmp
iflt 2
1: new java.lang.IllegalArgumentException
dup
ldc "bound must be greater than origin"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new java.util.Random$RandomLongsSpliterator
dup
3: aload 0
lconst_0
ldc 9223372036854775807
lload 1
lload 3
4: invokespecial java.util.Random$RandomLongsSpliterator.<init>:(Ljava/util/Random;JJJJ)V
5: iconst_0
6: invokestatic java.util.stream.StreamSupport.longStream:(Ljava/util/Spliterator$OfLong;Z)Ljava/util/stream/LongStream;
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/Random;
0 7 1 randomNumberOrigin J
0 7 3 randomNumberBound J
MethodParameters:
Name Flags
randomNumberOrigin
randomNumberBound
public java.util.stream.DoubleStream doubles(long);
descriptor: (J)Ljava/util/stream/DoubleStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=11, locals=3, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "size must be non-negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new java.util.Random$RandomDoublesSpliterator
dup
3: aload 0
lconst_0
lload 1
ldc 1.7976931348623157E308
dconst_0
4: invokespecial java.util.Random$RandomDoublesSpliterator.<init>:(Ljava/util/Random;JJDD)V
5: iconst_0
6: invokestatic java.util.stream.StreamSupport.doubleStream:(Ljava/util/Spliterator$OfDouble;Z)Ljava/util/stream/DoubleStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/Random;
0 7 1 streamSize J
MethodParameters:
Name Flags
streamSize
public java.util.stream.DoubleStream doubles();
descriptor: ()Ljava/util/stream/DoubleStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=11, locals=1, args_size=1
start local 0 0: new java.util.Random$RandomDoublesSpliterator
dup
1: aload 0
lconst_0
ldc 9223372036854775807
ldc 1.7976931348623157E308
dconst_0
2: invokespecial java.util.Random$RandomDoublesSpliterator.<init>:(Ljava/util/Random;JJDD)V
3: iconst_0
4: invokestatic java.util.stream.StreamSupport.doubleStream:(Ljava/util/Spliterator$OfDouble;Z)Ljava/util/stream/DoubleStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/util/Random;
public java.util.stream.DoubleStream doubles(long, double, double);
descriptor: (JDD)Ljava/util/stream/DoubleStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=11, locals=7, args_size=4
start local 0 start local 1 start local 3 start local 5 0: lload 1
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "size must be non-negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
dload 3
dload 5
dcmpg
iflt 4
3: new java.lang.IllegalArgumentException
dup
ldc "bound must be greater than origin"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
new java.util.Random$RandomDoublesSpliterator
dup
5: aload 0
lconst_0
lload 1
dload 3
dload 5
6: invokespecial java.util.Random$RandomDoublesSpliterator.<init>:(Ljava/util/Random;JJDD)V
7: iconst_0
8: invokestatic java.util.stream.StreamSupport.doubleStream:(Ljava/util/Spliterator$OfDouble;Z)Ljava/util/stream/DoubleStream;
areturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/util/Random;
0 9 1 streamSize J
0 9 3 randomNumberOrigin D
0 9 5 randomNumberBound D
MethodParameters:
Name Flags
streamSize
randomNumberOrigin
randomNumberBound
public java.util.stream.DoubleStream doubles(double, double);
descriptor: (DD)Ljava/util/stream/DoubleStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=11, locals=5, args_size=3
start local 0 start local 1 start local 3 0: dload 1
dload 3
dcmpg
iflt 2
1: new java.lang.IllegalArgumentException
dup
ldc "bound must be greater than origin"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new java.util.Random$RandomDoublesSpliterator
dup
3: aload 0
lconst_0
ldc 9223372036854775807
dload 1
dload 3
4: invokespecial java.util.Random$RandomDoublesSpliterator.<init>:(Ljava/util/Random;JJDD)V
5: iconst_0
6: invokestatic java.util.stream.StreamSupport.doubleStream:(Ljava/util/Spliterator$OfDouble;Z)Ljava/util/stream/DoubleStream;
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/Random;
0 7 1 randomNumberOrigin D
0 7 3 randomNumberBound D
MethodParameters:
Name Flags
randomNumberOrigin
randomNumberBound
private void readObject(java.io.ObjectInputStream);
descriptor: (Ljava/io/ObjectInputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.ObjectInputStream.readFields:()Ljava/io/ObjectInputStream$GetField;
astore 2
start local 2 1: aload 2
ldc "seed"
ldc -1
invokevirtual java.io.ObjectInputStream$GetField.get:(Ljava/lang/String;J)J
lstore 3
start local 3 2: lload 3
lconst_0
lcmp
ifge 6
3: new java.io.StreamCorruptedException
dup
4: ldc "Random: invalid seed"
5: invokespecial java.io.StreamCorruptedException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: java.io.ObjectInputStream$GetField long
StackMap stack:
aload 0
lload 3
invokevirtual java.util.Random.resetSeed:(J)V
7: aload 0
aload 2
ldc "nextNextGaussian"
dconst_0
invokevirtual java.io.ObjectInputStream$GetField.get:(Ljava/lang/String;D)D
putfield java.util.Random.nextNextGaussian:D
8: aload 0
aload 2
ldc "haveNextNextGaussian"
iconst_0
invokevirtual java.io.ObjectInputStream$GetField.get:(Ljava/lang/String;Z)Z
putfield java.util.Random.haveNextNextGaussian:Z
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/util/Random;
0 10 1 s Ljava/io/ObjectInputStream;
1 10 2 fields Ljava/io/ObjectInputStream$GetField;
2 10 3 seedVal J
Exceptions:
throws java.io.IOException, java.lang.ClassNotFoundException
MethodParameters:
Name Flags
s
private synchronized void writeObject(java.io.ObjectOutputStream);
descriptor: (Ljava/io/ObjectOutputStream;)V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.ObjectOutputStream.putFields:()Ljava/io/ObjectOutputStream$PutField;
astore 2
start local 2 1: aload 2
ldc "seed"
aload 0
getfield java.util.Random.seed:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
invokevirtual java.io.ObjectOutputStream$PutField.put:(Ljava/lang/String;J)V
2: aload 2
ldc "nextNextGaussian"
aload 0
getfield java.util.Random.nextNextGaussian:D
invokevirtual java.io.ObjectOutputStream$PutField.put:(Ljava/lang/String;D)V
3: aload 2
ldc "haveNextNextGaussian"
aload 0
getfield java.util.Random.haveNextNextGaussian:Z
invokevirtual java.io.ObjectOutputStream$PutField.put:(Ljava/lang/String;Z)V
4: aload 1
invokevirtual java.io.ObjectOutputStream.writeFields:()V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/util/Random;
0 6 1 s Ljava/io/ObjectOutputStream;
1 6 2 fields Ljava/io/ObjectOutputStream$PutField;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
s
private void resetSeed(long);
descriptor: (J)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=3, args_size=2
start local 0 start local 1 0: getstatic java.util.Random.unsafe:Ljdk/internal/misc/Unsafe;
aload 0
getstatic java.util.Random.seedOffset:J
new java.util.concurrent.atomic.AtomicLong
dup
lload 1
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:(J)V
invokevirtual jdk.internal.misc.Unsafe.putObjectVolatile:(Ljava/lang/Object;JLjava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/Random;
0 2 1 seedVal J
MethodParameters:
Name Flags
seedVal
}
SourceFile: "Random.java"
NestMembers:
java.util.Random$RandomDoublesSpliterator java.util.Random$RandomIntsSpliterator java.util.Random$RandomLongsSpliterator
InnerClasses:
public abstract GetField = java.io.ObjectInputStream$GetField of java.io.ObjectInputStream
public abstract PutField = java.io.ObjectOutputStream$PutField of java.io.ObjectOutputStream
final RandomDoublesSpliterator = java.util.Random$RandomDoublesSpliterator of java.util.Random
final RandomIntsSpliterator = java.util.Random$RandomIntsSpliterator of java.util.Random
final RandomLongsSpliterator = java.util.Random$RandomLongsSpliterator of java.util.Random
public abstract OfDouble = java.util.Spliterator$OfDouble of java.util.Spliterator
public abstract OfInt = java.util.Spliterator$OfInt of java.util.Spliterator
public abstract OfLong = java.util.Spliterator$OfLong of java.util.Spliterator