Packageidv.cjcat.stardust.common.math
Classpublic class Random
InheritanceRandom Inheritance StardustElement
SubclassesAveragedRandom, UniformRandom

This class generates a random number.



Public Properties
 PropertyDefined by
 Inheritedname : String
StardustElement
Public Methods
 MethodDefined by
  
Random
  
getRange():Array
[Abstract Method] Returns the random number's range.
Random
 Inherited
[Abstract Method] Returns the related objects of the element.
StardustElement
 Inherited
getXMLTag():XML
Returns the root tag of the XML representation.
StardustElement
  
getXMLTagName():String
Random
 Inherited
parseXML(xml:XML, builder:XMLBuilder = null):void
[Abstract Method] Reconstructs the element from XML representations.
StardustElement
  
random():Number
[Abstract Method] Generates a random number.
Random
  
setRange(lowerBound:Number, upperBound:Number):void
[Abstract Method] Sets the random number's range.
Random
 Inherited
toXML():XML
[Abstract Method] Generates XML representation.
StardustElement
Method detail
getElementTypeXMLTag()method
public override function getElementTypeXMLTag():XML

Returns
XML
getRange()method 
public function getRange():Array

[Abstract Method] Returns the random number's range.

Returns
Array
getXMLTagName()method 
public override function getXMLTagName():String

Returns
String
random()method 
public function random():Number

[Abstract Method] Generates a random number.

Returns
Number
setRange()method 
public function setRange(lowerBound:Number, upperBound:Number):void

[Abstract Method] Sets the random number's range.

Parameters
lowerBound:Number
 
upperBound:Number