Re: Son of Silly Ball and Rand()
Re: Son of Silly Ball and Rand()
- Subject: Re: Son of Silly Ball and Rand()
- From: Andreas Monitzer <email@hidden>
- Date: Tue, 7 Aug 2001 14:06:57 +0200
On Tuesday, August 7, 2001, at 01:50 , jean-michel daix wrote:
The cocoa version of Silly Ball use Rand() to create a random Number.
Those
someone now where this function is documented ? How to create a RandSeed
in
cocoa ?
rand is obsolete, use random:
man 3 random
NAME
random, srandom, initstate, setstate - better random number generator;
routines for changing generators
SYNOPSIS
#include <stdlib.h>
long
random(void)
void
srandom(unsigned seed)
char *
initstate(unsigned seed, char *state, int n)
char *
setstate(char *state)
[...]
andy
--
"He was addicted to life. But we cured him"