DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

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

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦6164f695a⟧ TextFile

    Length: 310 (0x136)
    Types: TextFile
    Names: »random.h«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Crystal/random.h« 

TextFile

/* random.h
 *************************************************************************/

#include	<math.h>

double drand48();	/* 0 to 1 */

long lrand48();		/* 0 to 2^31-1 */

long mrand48();		/* -2^31 to 2^31-1 */

#define	RAN(num)	((int)floor(drand48()*(num)))
#define	PCT(num)	((drand48() * 100.0) < (num))