Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

RandomPrime Class Reference

#include <random-prime.h>

List of all members.

Public Types

typedef integer Prime_Type

Public Methods

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

Static Public Methods

void setSeed (unsigned long ul)

Public Attributes

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 Prime_Type   p const [inline]
 

@memo randomPrime(Prime_Type& p) return a random prime

Prime_Type randomPrime   const [inline]
 

@memo randomPrime() return a random prime

void setSeed unsigned long    ul [inline, static]
 

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


Member Data Documentation

int _bits
 


Generated on Mon Jun 20 09:16:52 2005 for linbox by doxygen1.2.18