DataMuseum.dk

Presents historical artifacts from the history of:

ICL Comet 32

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about ICL Comet 32

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦c5b6436c9⟧ TextFile

    Length: 588 (0x24c)
    Types: TextFile
    Notes: UNIX file
    Names: »rand.3«

Derivation

└─⟦26887b7e0⟧ Bits:30009717 Comet 32 harddisk image
    └─⟦28c352965⟧ »/a« UNIX Filesystem
        └─⟦this⟧ »usr/man/man3/rand.3« 

TextFile

.ig
	@(#)rand.3	2.1	7/1/84
	@(#)Copyright (C) 1983 by National Semiconductor Corp.
..
.TH RAND 3
.SH NAME
rand, srand \- random number generator
.SH SYNOPSIS
.nf
.B srand(seed)
.B int seed;
.PP
.B rand()
.fi
.SH DESCRIPTION
.I Rand
uses a multiplicative congruential
random number generator
with period 2**32               
to return successive pseudo-random
numbers in the range from 0 to 2**31 \- 1.              
.PP
The generator is reinitialized by calling
.I srand
with 1 as argument.
It can be set to a random starting point by calling
.I srand
with whatever you like as argument.