[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: franz-friends@Ucb-C70
- Subject: rng
- From: Tim Maroney <tim.unc@UDel-Relay>
- Date: Mon, 29 Nov 82 03:40:14 GMT
- Original-date: 28 Nov 82 22:40:14 EST (Sun)
To the person who asked about random number generators and deficiencies
in (random) [I can't write mail to you for some reason]:
You're not doing anything wrong; that's the way the sucker works.
One good way to get random numbers is to do the syscall that gets
you the number of seconds since whenever-it-is, and use the mod
function. This is especially good for getting a random one or zero,
by using the evenp function.