Xref: utzoo comp.lang.c:24059 comp.lang.misc:3704 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!brutus.cs.uiuc.edu!apple!snorkelwacker!bloom-beacon!eru!luth!sunic!lkbpyr!jonas From: jonas@lkbpyr.UUCP (Jonas Heyman) Newsgroups: comp.lang.c,comp.lang.misc Subject: random i/o Message-ID: <111@lkbpyr.UUCP> Date: 28 Nov 89 15:27:31 GMT Organization: Pharmacia LKB Biotechnology, Uppsala SWEDEN. Lines: 23 Hello, I have a problem concerning random i/o. I want to get random numbers from a file that I read from disk. The file looks like: 40 43 44 50 # numbers between 40-99 51 . . How do I access the file and pick a number randomly. I should only pick number that exist in the file, for instance 43 the first time and then 51 the second time and so on. Is there a simple solution to this ? Be glad for some help. Sincerely Jonas, -- jonas@lkbpyr.lkb.se