Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!spool.mu.edu!samsung!uakari.primate.wisc.edu!dali.cs.montana.edu!milton!plague From: plague@milton.u.washington.edu (Jack Brown) Newsgroups: comp.lang.pascal Subject: THINK Pascal on the Mac Message-ID: <17150@milton.u.washington.edu> Date: 25 Feb 91 23:08:41 GMT Organization: University of Washington, Seattle Lines: 12 I've got a problem. I need to be able to generate random integers between 1 and 100. These are for indexing arrays. Anyway, the problem is that when I call the funciton 'random', I get integers between +-32767. It is simple to scale these to provide numbers between 1 and 100, but I can't seem to get integers out of them... Can anybody out there help? Thanks, Jack Brown aka plague@milton.u.washington.edu