Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

RandomPrime Class Reference

#include <random-prime.h>


Public Types

typedef integer Prime_Type

Public Member Functions

 RandomPrime (int bits=30, unsigned long seed=0)
Prime_Type randomPrime () const
Prime_Type randomPrime (Prime_Type &p) const

Static Public Member Functions

void setSeed (unsigned long ul)

Data Fields

int _bits


Member Typedef Documentation

typedef integer Prime_Type
 


Constructor & Destructor Documentation

RandomPrime int  bits = 30,
unsigned long  seed = 0
[inline]
 


Member Function Documentation

Prime_Type randomPrime  )  const [inline]
 

randomPrime() return a random prime

Prime_Type randomPrime Prime_Type p  )  const [inline]
 

randomPrime(Prime_Type& p) return a random prime

void setSeed unsigned long  ul  )  [inline, static]
 

setSeed (unsigned long ul) Set the random seed to be ul.


Field Documentation

int _bits
 


Generated on Fri Jul 8 10:29:56 2005 for linbox by doxygen 1.3.7