Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
chxavrandom.h
Package: 142_61_thumb_advanced.rar [view]
Upload User: dangjiwu
Upload Date: 2013-07-19
Package Size: 42019k
Code Size: 1k
Category:
Symbian
Development Platform:
Visual C++
- /*============================================================================*
- *
- * (c) 1995-2002 RealNetworks, Inc. Patents pending. All rights reserved.
- *
- *============================================================================*/
- #ifndef __RANDOM_H__
- #define __RANDOM_H__
- #include "chxavvector.h"
- class RandomSequence {
- public:
- RandomSequence(unsigned int seed = 1, int type=3);
- unsigned int Random();
- void SRandom(unsigned int seed);
- static const unsigned int RandomMax;
- private:
- class LCG {
- public:
- LCG(unsigned int seed);
- unsigned int Random();
- void SRandom(unsigned int seed);
- private:
- unsigned int m_seed;
- };
- class LFG {
- public:
- LFG();
- LFG(unsigned int seed,int type);
- unsigned int Random();
- void SRandom(unsigned int seed);
- class StateGen {
- public:
- StateGen(unsigned int seed);
- unsigned int Random();
- private:
- unsigned int m_seed;
- };
- class SeqParams {
- public:
- int m_degree;
- int m_seperation;
- };
- const static SeqParams zm_seqParams[];
- int m_degree;
- int m_sep;
- int m_fptr;
- int m_rptr;
- CHXAvVector<unsigned int> m_state;
- };
- int m_type;
- LCG m_lcg;
- LFG m_lfg;
- };
- #endif