Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!warwick!covpoly!csg019 From: csg019@cck.cov.ac.uk (Z*A*P*H*O*D) Newsgroups: comp.sys.amiga.tech Subject: Re: Lattice BLink problem Message-ID: <1990Nov26.181340.17891@cck.cov.ac.uk> Date: 26 Nov 90 18:13:40 GMT References: <1990Nov22.133240.12613@gdr.bath.ac.uk> Organization: Coventry Polytechnic, Coventry, UK Lines: 27 In article <1990Nov22.133240.12613@gdr.bath.ac.uk> mapjilg@gdr.bath.ac.uk (J I L Gold) writes: >In one of the modules in the game I'm writing, I'm needing to get >a random number. So, I #include and use the function >drand48() to give a double in [0,1). In my BLink LIB section, >I've tried lcffp.lib and lcmieee.lib (or whatever they were), >and both times the linker chokes up something like _CX405 un- >defined (default _stub). So what library do I use to link >the module properly? I don't realy know much about C but you could link a module with the following assembly language program, this will return a psedo random number (it is in fact the current raster beam Y-position... you could use it if you are realy desperate... start move.b $dff006,random rts Massive eh? -- *********/// O O **A member of S.H.I.T. (Super High Intelegence Team)**///*** * /// u Fight, defeat and kill organized laming. /// * * \\\ /// --- Zaphod of Intuition csg019@uk.ac.cov.cck ok? \\\ /// * ****\\X//**********************************************************\\X//******