Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
random.py File Reference

Go to the source code of this file.

Data Structures

class  Random
 

Namespaces

 random
 

Constant Groups

 random
 

Functions

def seed
 --------------—— core generator -------------—— More...
 
def random
 
def getstate
 
def setstate
 
def jumpahead
 
def whseed
 
def __getstate__
 -— Methods below this point do not need to be overridden when -— subclassing for the purpose of using a different core generator. More...
 
def __setstate__
 
def randrange
 --------------—— integer methods -------------—— More...
 
def randint
 
def choice
 --------------—— sequence methods -------------—— More...
 
def shuffle
 
def uniform
 -----------——— real-valued distributions ----------——— More...
 
def normalvariate
 -----------------— normal distribution -----------------— More...
 
def lognormvariate
 -----------------— lognormal distribution -----------------— More...
 
def cunifvariate
 -----------------— circular uniform -----------------— More...
 
def expovariate
 -----------------— exponential distribution -----------------— More...
 
def vonmisesvariate
 -----------------— von Mises distribution -----------------— More...
 
def gammavariate
 -----------------— gamma distribution -----------------— More...
 
def stdgamma
 
def gauss
 -----------------— Gauss (faster alternative) -----------------— More...
 
def betavariate
 -----------------— beta -----------------— See http://sourceforge.net/bugs/?func=detailbug&bug_id=130030&group_id=5470 for Ivan Frohne's insightful analysis of why the original implementation: More...
 
def paretovariate
 -----------------— Pareto -----------------— More...
 
def weibullvariate
 -----------------— Weibull -----------------— More...
 

Variables

float _pi = 3.1415926536
 
float _e = 2.7182818284590451
 
list __all__
 
int NV_MAGICCONST = 4
 
float TWOPI = 2.0
 
tuple LOG4 = _log(4.0)
 
float SG_MAGICCONST = 1.0
 
tuple _inst = Random()
 
 seed = _inst.seed
 
 random = _inst.random
 
 uniform = _inst.uniform
 
 randint = _inst.randint
 
 choice = _inst.choice
 
 randrange = _inst.randrange
 
 shuffle = _inst.shuffle
 
 normalvariate = _inst.normalvariate
 
 lognormvariate = _inst.lognormvariate
 
 cunifvariate = _inst.cunifvariate
 
 expovariate = _inst.expovariate
 
 vonmisesvariate = _inst.vonmisesvariate
 
 gammavariate = _inst.gammavariate
 
 stdgamma = _inst.stdgamma
 
 gauss = _inst.gauss
 
 betavariate = _inst.betavariate
 
 paretovariate = _inst.paretovariate
 
 weibullvariate = _inst.weibullvariate
 
 getstate = _inst.getstate
 
 setstate = _inst.setstate
 
 jumpahead = _inst.jumpahead
 
 whseed = _inst.whseed
 
 _seed
 
 gauss_next