Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: How do I get random #s?
Message-ID: <1989Feb14.154157.15148@utzoo.uucp>
Organization: U of Toronto Zoology
References: <19415@dhw68k.cts.com> <225800121@uxe.cso.uiuc.edu> <514@larry.UUCP> <25745@apple.Apple.COM>
Date: Tue, 14 Feb 89 15:41:57 GMT

In article <25745@apple.Apple.COM> desnoyer@Apple.COM (Peter Desnoyers) writes:
>... C was evidently designed by people who didn't need random
>numbers - the standardized rand() doesn't allow a seed to be
>specified, making it useless when you need independent streams of
>random numbers.

Please read manual before flaming about it.  The V7 rand() allowed a
seed to be specified, as (I think) did earlier ones.  And so does
ANSI C (Oct draft) -- in fact the ANSI C spec for rand() is essentially
the V7 one.  If the C you use has broken this, complain to your supplier.
-- 
The Earth is our mother;       |     Henry Spencer at U of Toronto Zoology
our nine months are up.        | uunet!attcan!utzoo!henry henry@zoo.toronto.edu
