home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!hyperion!desire.wright.edu!nseth
- From: nseth@desire.wright.edu
- Newsgroups: comp.unix.questions
- Subject: Help with generating random numbers
- Message-ID: <1992Nov12.041243.5542@desire.wright.edu>
- Date: 12 Nov 92 04:12:43 EST
- Organization: Wright State University
- Lines: 14
-
- I need help with generating random numbers. If I use the normail C routines
- on UNIX for generating random numbers (random, rand, etc.) everytime the
- program is executed, the sequence of random numers remains the same.
-
- How can I fix this so that each time I execute that program, the initial (and
- thus the following sequence of) random numbers is different? On Turbo C the
- subroutine randomize() takes care of this. Is there such a routine available on
- UNIX/ULTRIX?
-
- Any help will be greatly appreciated. Thanks a lot.
-
- Nitin Seth
- nseth@cs.wright.edu
-
-