Class Random
public class Random : Serializable, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ISerializable
- Inheritance
-
Random
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
Random()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public Random()
Random(long)
public Random(long arg0)
Parameters
Random(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
public Random(params object[] args)
Parameters
args
object[]
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements Closeable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
Methods
Doubles()
public DoubleStream Doubles()
Returns
Doubles(double, double)
public DoubleStream Doubles(double arg0, double arg1)
Parameters
Returns
Doubles(long)
public DoubleStream Doubles(long arg0)
Parameters
Returns
Doubles(long, double, double)
public DoubleStream Doubles(long arg0, double arg1, double arg2)
Parameters
Returns
Ints()
public IntStream Ints()
Returns
Ints(int, int)
public IntStream Ints(int arg0, int arg1)
Parameters
Returns
Ints(long)
public IntStream Ints(long arg0)
Parameters
Returns
Ints(long, int, int)
public IntStream Ints(long arg0, int arg1, int arg2)
Parameters
Returns
Longs()
public LongStream Longs()
Returns
Longs(long)
public LongStream Longs(long arg0)
Parameters
Returns
Longs(long, long)
public LongStream Longs(long arg0, long arg1)
Parameters
Returns
Longs(long, long, long)
public LongStream Longs(long arg0, long arg1, long arg2)
Parameters
Returns
NextBoolean()
public bool NextBoolean()
Returns
NextBytes(byte[])
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Random.html#nextBytes(byte[])
public void NextBytes(byte[] arg0)
Parameters
NextDouble()
public double NextDouble()
Returns
NextFloat()
public float NextFloat()
Returns
NextGaussian()
public double NextGaussian()
Returns
NextInt()
public int NextInt()
Returns
NextInt(int)
public int NextInt(int arg0)
Parameters
Returns
NextLong()
public long NextLong()
Returns
SetSeed(long)
public void SetSeed(long arg0)