![]() |
Noob with Rnd? - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Noob with Rnd? (/showthread.php?tid=1013) |
Noob with Rnd? - Rezeyu - 14-06-2007 I noticed everytime I used rnd in the client is was giving me a set pattern.. I used: Int(Rnd * 4) + 1 And it always gave me this order: 3 - 3 - 3 - 2 - 2 - 4 - 1 - 4 - 4 - 3 No matter what. I don't understand, and it's driving me nuts. It works fine in the server. Makes no sense. Blah. Re: Noob with Rnd? - Rezeyu - 14-06-2007 :oops: I put it in Sub Main now, thnx Verrigan. Re: Noob with Rnd? - Rezeyu - 14-06-2007 Well now that it got me thinking about it, why dos it produce that pattern when it's not randomized? Re: Noob with Rnd? - Rezeyu - 14-06-2007 Hah, alright, makes sense then. I knew that the rnd function ran off a base apttern of some sort, becasue I remember being told it's not 'perfectly' random. The timer bit makes perfect sense now. Thanks again. I needed it client side because everytime you login it displays a new game tip. Re: Noob with Rnd? - Coke - 14-06-2007 That sounds leet :O Re: Noob with Rnd? - Robin - 14-06-2007 Fox Wrote:That sounds leet :O I am sooo stealing that idea. *opens up VB* Re: Noob with Rnd? - Matt - 14-06-2007 Most of the commercial mmo games have that. Took awhile for Lineage 2 to get it, but they put that in when they released C5. Not an original idea, but it is an original MS idea. Re: Noob with Rnd? - Dragoons Master - 16-06-2007 Verrigan, I always used just "Randomize", without Timer. What seed it uses I use only "Randomize"? Re: Noob with Rnd? - Dragoons Master - 16-06-2007 I do have, but I'm not at home right now xD I'm at college and I'll go homeonly tonight. Well, anyway, I'll take a look tonight ![]() |