Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!mintaka!think.com!sdd.hp.com!spool2.mu.edu!uwm.edu!psuvax1!rutgers!tut.cis.ohio-state.edu!ucbvax!UMCVMB.MISSOURI.EDU!C489030 From: C489030@UMCVMB.MISSOURI.EDU (Greg Hodgdon) Newsgroups: comp.sys.apple2 Subject: random no. in assembly? Message-ID: <9101300829.AA21626@apple.com> Date: 29 Jan 91 17:35:07 GMT Sender: usenet@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 9 Hi all. I am looking for a way to generate random numbers in an assembly language program. The entry point to the applesoft RND function would be a start, but I really just need an algorithm. I'm using one that shifts a 2-byte seed left once and adds it back to the seed. that doesn't give very good results after the first few numbers. thanks greg c489030@umcvmb.missouri.edu