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
RAND.3
Upload User: jnzhq888
Upload Date: 2007-01-18
Package Size: 51694k
Code Size: 1k
Category:
OS Develop
Development Platform:
WINDOWS
- ." @(#)rand.3c 6.2 (Berkeley) 9/29/85
- ."
- .TH RAND 3 "September 29, 1985"
- .AT 3
- .SH NAME
- rand, srand - random number generator
- .SH SYNOPSIS
- .nf
- .ft B
- #include <stdlib.h>
- void srand(unsigned fIseedfP)
- unsigned rand(void)
- .ft R
- .fi
- .SH DESCRIPTION
- .B Rand
- uses a multiplicative congruential
- random number generator with period
- .if t 2us732s0d
- .if n 2**32
- to return successive pseudo-random
- numbers in the range from 0 to
- .BR RAND_MAX .
- .PP
- The generator is reinitialized by calling
- .B srand
- with 1 as argument.
- It can be set to a random starting point by calling
- .B srand
- with whatever you like as argument.
- .SH "SEE ALSO"
- .BR random (3).