public class GKRandomDistribution extends NSObject implements GKRandom
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
GKRandomDistribution(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static GKRandomDistribution |
alloc() |
static GKRandomDistribution |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static GKRandomDistribution |
d20()
Convenience creation for the very common d20 range [1, 20] with an isolated random source
shielded from outside sources.
|
static GKRandomDistribution |
d6()
Convenience creation for the very common d6 range [1, 6] with an isolated random source
shielded from outside sources.
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
static GKRandomDistribution |
distributionForDieWithSideCount(long sideCount)
Convenience creation of random distribution with the die like range [1, sideCount] using an isolated source to grab input values from.
|
static GKRandomDistribution |
distributionWithLowestValueHighestValue(long lowestInclusive,
long highestInclusive)
Convenience creation of random distribution within the range [lowest, highest] using an isolated source to grab input values from.
|
static long |
hash_static() |
long |
highestValue()
The highest value the distribution will output.
|
GKRandomDistribution |
init() |
GKRandomDistribution |
initWithRandomSourceLowestValueHighestValue(GKRandom source,
long lowestInclusive,
long highestInclusive)
Initializes a random distribution within the range [lowest, highest] using a source to grab input values from.
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
long |
lowestValue()
The lowest value the distribution will output.
|
static GKRandomDistribution |
new_objc() |
boolean |
nextBool()
Returns the next true or false value in the random sequence and moves ahead to the next one.
|
long |
nextInt()
Returns the next integer in the random sequence and moves ahead to the next one.
|
long |
nextIntWithUpperBound(long upperBound)
Returns the next unsigned value in the random sequence that is less than upperBound.
|
float |
nextUniform()
Returns the next uniform float in the random sequence and moves ahead to the next one.
|
long |
numberOfPossibleOutcomes()
The number of unique possible outcomes, depending on the distribution type this is not always highest - lowest + 1.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeyprotected GKRandomDistribution(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static GKRandomDistribution alloc()
public static GKRandomDistribution allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static GKRandomDistribution d20()
public static GKRandomDistribution d6()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static GKRandomDistribution distributionForDieWithSideCount(long sideCount)
initWithRandomSource:lowestValue:highestValue:public static GKRandomDistribution distributionWithLowestValueHighestValue(long lowestInclusive, long highestInclusive)
initWithRandomSource:lowestValue:highestValue:public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static GKRandomDistribution new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public long highestValue()
public GKRandomDistribution init()
public GKRandomDistribution initWithRandomSourceLowestValueHighestValue(GKRandom source, long lowestInclusive, long highestInclusive)
public long lowestValue()
public boolean nextBool()
GKRandomBy default this should be based on nextIntWithUpperBound:. Implementations may base it on another representation if needed.
public long nextInt()
GKRandompublic long nextIntWithUpperBound(long upperBound)
GKRandomThis is used to implement nextBool and nextUniform by default.
nextIntWithUpperBound in interface GKRandompublic float nextUniform()
GKRandomBy default this should be based on nextIntWithUpperBound:. Implementions may base it on another representation if needed.
nextUniform in interface GKRandomnextIntWithUpperBound:,
nextIntpublic long numberOfPossibleOutcomes()