lrand.c

gurba-0.40/src/host/unix/lrand.c · 298 B

From the archive gurba.tgz

Download the archive   « Back to the archive contents

# include "dgd.h"

extern long seed	P((long));
extern long lrand	P((void));

/*
 * NAME:	P->srandom()
 * DESCRIPTION:	set the random seed
 */
void P_srandom(s)
long s;
{
    seed(s);
}

/*
 * NAME:	P->random()
 * DESCRIPTION:	return a long random number
 */
long P_random()
{
    return lrand();
}

Site Stats

Snippets: 1791
Codebases: 571