| delorie.com/archives/browse.cgi | search |
| From: | ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: rand() or random() |
| Date: | 11 Nov 1997 17:35:20 GMT |
| Organization: | The National Capital FreeNet |
| Lines: | 23 |
| Message-ID: | <64a50o$ffs@freenet-news.carleton.ca> |
| References: | <Pine DOT SUN DOT 3 DOT 91 DOT 971105114611 DOT 460F-100000 AT is> <3466e64d DOT 9875734 AT news DOT arcticnet DOT no> |
| Reply-To: | ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) |
| NNTP-Posting-Host: | freenet3.carleton.ca |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Ove Kaaven (ovek AT arcticnet DOT no) writes:
> Well, those copyright issues seem somewhat confusing.
> Let's see... how legal is this implementation?
>
> int rand(void)
> {
> return random();
> }
>
What about
int rand (void) {
// Insert the code for random() here
}
--
.*. Where feelings are concerned, answers are rarely simple [GeneDeWeese]
-() < When I go to the theater, I always go straight to the "bag and mix"
`*' bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |