| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| pack-priv static class | RubyRandom.
Internal API, subject to change. |
| Modifier and Type | Field and Description |
|---|---|
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static IRubyObject | |
| public static RubyClass | |
| public RubyRandom. | |
| public IRubyObject | initialize_copy(ThreadContext
the thread context context, IRubyObject the original orig)Overrides org. Initializes this object as a copy of the original, that is the parameter to this object. |
| public static IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public static RubyRandom | |
| public static RubyRandom | |
| public static IRubyObject | |
| public IRubyObject | op_equal(ThreadContext context, IRubyObject obj)
Overrides org. Implements org. rb_obj_equal Will by default use identity equality to compare objects. |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | randDefault(ThreadContext context, IRubyObject recv, IRubyObject arg)
Hides org.
|
| pack-priv static IRubyObject | |
| pack-priv static IRubyObject | |
| public IRubyObject | |
| public static RubyBignum | |
| public static BigInteger | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | |
| public static IRubyObject |
| DEFAULT_SEED_CNT | back to summary |
|---|---|
| private static final int DEFAULT_SEED_CNT | |
| RubyRandom | back to summary |
|---|---|
| pack-priv RubyRandom(Ruby runtime, RubyClass rubyClass) | |
| RubyRandom | back to summary |
|---|---|
| pack-priv RubyRandom(Ruby runtime, RubyClass rubyClass, RubyRandom. | |
| bytes | back to summary |
|---|---|
public static IRubyObject bytes(ThreadContext context, IRubyObject recv, IRubyObject arg)
| |
| createRandomClass | back to summary |
|---|---|
public static RubyClass createRandomClass(ThreadContext context, RubyClass Object)
| |
| getRandomType | back to summary |
|---|---|
| public RubyRandom. | |
| initialize_copy | back to summary |
|---|---|
| public IRubyObject initialize_copy(ThreadContext context, IRubyObject orig) Overrides org. Doc from org. Initializes this object as a copy of the original, that is the parameter to this object. Will make sure that the argument actually has the same real class as this object. It shouldn't be possible to initialize an object with something totally different.
| |
| left | back to summary |
|---|---|
public static IRubyObject left(ThreadContext context, IRubyObject recv)
| |
| leftObj | back to summary |
|---|---|
public IRubyObject leftObj(ThreadContext context)
| |
| marshal_dump | back to summary |
|---|---|
public IRubyObject marshal_dump(ThreadContext context)
| |
| marshal_load | back to summary |
|---|---|
public IRubyObject marshal_load(ThreadContext context, IRubyObject arg)
| |
| newRandom | back to summary |
|---|---|
| public static RubyRandom newRandom(Ruby runtime, RubyClass randomClass, IRubyObject seed)
Deprecated since 10.0.
| |
| newRandom | back to summary |
|---|---|
| public static RubyRandom newRandom(ThreadContext context, RubyClass randomClass, IRubyObject seed) | |
| newSeed | back to summary |
|---|---|
public static IRubyObject newSeed(ThreadContext context, IRubyObject recv)
| |
| op_equal | back to summary |
|---|---|
| public IRubyObject op_equal(ThreadContext context, IRubyObject obj) Overrides org. Implements org. Doc from org. rb_obj_equal Will by default use identity equality to compare objects. This follows the Ruby semantics. The name of this method doesn't follow the convention because hierarchy problems
| |
| rand | back to summary |
|---|---|
| public static IRubyObject rand(ThreadContext context, IRubyObject recv, IRubyObject[] args)
Deprecated
| |
| randDefault | back to summary |
|---|---|
| public static IRubyObject randDefault(ThreadContext context, IRubyObject recv) Hides org.
| |
| randDefault | back to summary |
|---|---|
| public static IRubyObject randDefault(ThreadContext context, IRubyObject recv, IRubyObject arg) Hides org.
| |
| randKernel | back to summary |
|---|---|
| pack-priv static IRubyObject randKernel(ThreadContext context, IRubyObject self, IRubyObject arg) | |
| randKernel | back to summary |
|---|---|
| pack-priv static IRubyObject randKernel(ThreadContext context, IRubyObject[] args)
Deprecated
| |
| randObj | back to summary |
|---|---|
| public IRubyObject randObj(ThreadContext context, IRubyObject[] args)
Deprecated
| |
| randomSeed | back to summary |
|---|---|
| public static RubyBignum randomSeed(Ruby runtime) | |
| randomSeedBigInteger | back to summary |
|---|---|
| public static BigInteger randomSeedBigInteger(Random random) | |
| rbDefault | back to summary |
|---|---|
public static IRubyObject rbDefault(ThreadContext context, IRubyObject self)
| |
| seed | back to summary |
|---|---|
public static IRubyObject seed(ThreadContext context, IRubyObject self)
| |
| srand | back to summary |
|---|---|
public static IRubyObject srand(ThreadContext context, IRubyObject recv)
| |
| srand | back to summary |
|---|---|
public static IRubyObject srand(ThreadContext context, IRubyObject recv, IRubyObject seed)
| |
| srandCommon | back to summary |
|---|---|
| public static IRubyObject srandCommon(ThreadContext context, IRubyObject recv) | |
| srandCommon | back to summary |
|---|---|
| public static IRubyObject srandCommon(ThreadContext context, IRubyObject recv, IRubyObject newSeed) | |
| state | back to summary |
|---|---|
public static IRubyObject state(ThreadContext context, IRubyObject recv)
| |
| stateObj | back to summary |
|---|---|
public IRubyObject stateObj(ThreadContext context)
| |
| urandom | back to summary |
|---|---|
public static IRubyObject urandom(ThreadContext context, IRubyObject recv, IRubyObject num)
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static IRubyObject | |
| public static IRubyObject | |
| pack-priv static RubyRandom. |
| RandomFormatter | back to summary |
|---|---|
| public RandomFormatter() | |
| randomNumber | back to summary |
|---|---|
public static IRubyObject randomNumber(ThreadContext context, IRubyObject self)
| |
| randomNumber | back to summary |
|---|---|
public static IRubyObject randomNumber(ThreadContext context, IRubyObject self, IRubyObject arg0)
| |
| tryGetRnd | back to summary |
|---|---|
| pack-priv static RubyRandom. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Random | |
| pack-priv final RubyInteger |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static int[] | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| pack-priv int | |
| pack-priv double | |
| pack-priv double | |
| pack-priv double | |
| pack-priv int | |
| pack-priv RubyInteger | |
| pack-priv RubyBignum | |
| public int | |
| public static Random | |
| public static Random | |
| public static Random | |
| public static Random |
| impl | back to summary |
|---|---|
| pack-priv final Random impl | |
| seed | back to summary |
|---|---|
| pack-priv final RubyInteger seed | |
| RandomType | back to summary |
|---|---|
| pack-priv RandomType(IRubyObject seed)
Deprecated since 10.0.
| |
| RandomType | back to summary |
|---|---|
| pack-priv RandomType(ThreadContext context, IRubyObject seed) | |
| RandomType | back to summary |
|---|---|
| pack-priv RandomType(IRubyObject vseed, RubyBignum state, int left)
Deprecated since 10.0.
| |
| RandomType | back to summary |
|---|---|
| pack-priv RandomType(ThreadContext context, IRubyObject vseed, RubyBignum state, int left) | |
| RandomType | back to summary |
|---|---|
| pack-priv RandomType(RubyRandom. | |
| bigEndianToInts | back to summary |
|---|---|
| private static int[] bigEndianToInts(byte[] buf, int initKeyLen) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| genrandInt32 | back to summary |
|---|---|
| pack-priv int genrandInt32() | |
| genrandReal | back to summary |
|---|---|
| pack-priv double genrandReal() | |
| genrandReal | back to summary |
|---|---|
| pack-priv double genrandReal(boolean excl) | |
| genrandReal2 | back to summary |
|---|---|
| pack-priv double genrandReal2() | |
| getLeft | back to summary |
|---|---|
| pack-priv int getLeft() | |
| getSeed | back to summary |
|---|---|
| pack-priv RubyInteger getSeed() | |
| getState | back to summary |
|---|---|
| pack-priv RubyBignum getState() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| randomFromBigInteger | back to summary |
|---|---|
| public static Random randomFromBigInteger(BigInteger big) | |
| randomFromBignum | back to summary |
|---|---|
| public static Random randomFromBignum(RubyBignum seed) | |
| randomFromFixnum | back to summary |
|---|---|
| public static Random randomFromFixnum(RubyFixnum seed) | |
| randomFromLong | back to summary |
|---|---|
| public static Random randomFromLong(long seed) | |