public class Random extends Object
| Modifier and Type | Method and Description |
|---|---|
protected int |
next(int bits) |
boolean |
nextBoolean() |
void |
nextBytes(byte[] bytes) |
double |
nextDouble() |
float |
nextFloat() |
int |
nextInt() |
int |
nextInt(int n) |
long |
nextLong() |
void |
setSeed(long seed) |
protected int next(int bits)
public double nextDouble()
public float nextFloat()
public int nextInt()
public int nextInt(int n)
public long nextLong()
public void setSeed(long seed)
public boolean nextBoolean()
public void nextBytes(byte[] bytes)
Copyright © 2026. All rights reserved.