home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5640 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  899 b 

  1. Path: ccshst05.cs.uoguelph.ca!ccshst01!jsadler
  2. From: jsadler@uoguelph.ca (J. Sadler)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Random #s
  5. Date: 18 Mar 1996 03:09:21 GMT
  6. Organization: University of Guelph
  7. Message-ID: <4iik51$61r@ccshst05.cs.uoguelph.ca>
  8. References: <4ihkif$ed0@apollo.isisnet.com>
  9. NNTP-Posting-Host: ccshst01.cs.uoguelph.ca
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. :     Hi all, newbie here :)..  I'm just messing around with a PD C compiler
  13. : and wanted to know - where can I find a function that gives me a random 
  14. : number? (And a newsgroup/mailing list for C newbies such as myself ;) )
  15.  
  16.     acording to my ansi based c:
  17.  
  18.         <stdlib.h>
  19.  
  20. func pro:
  21.  
  22.         int rand(void);
  23.  
  24. also might want:
  25.  
  26.          void srand(unsigned int seed);
  27.  
  28.                 there's psuedorandom 4 u
  29.                     jeff sadler
  30.  
  31. -  to make realy random access the time in seconds for your seed.
  32.  
  33. Total link Death in 17 days
  34.