Panda3D
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties
Classes | Functions | Variables
direct.showbase.RandomNumGen Namespace Reference

Classes

class  RandomNumGen
 

Functions

def randHash
 

Variables

list __all__ = ['randHash', 'RandomNumGen']
 

Detailed Description

RandomNumGen module: contains the RandomNumGen class

Function Documentation

def direct.showbase.RandomNumGen.randHash (   num)
this returns a random 16-bit integer, given a seed integer.
It will always return the same output given the same input.
This is useful for repeatably mapping numbers with predictable
bit patterns (i.e. doIds or zoneIds) to numbers with random bit patterns

Variable Documentation

list __all__ = ['randHash', 'RandomNumGen']