Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Noob with Rnd?
#1
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.
Reply
#2
:oops:


I put it in Sub Main now, thnx Verrigan.
Reply
#3
Well now that it got me thinking about it, why dos it produce that pattern when it's not randomized?
Reply
#4
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.
Reply
#5
That sounds leet :O
Reply
#6
Fox Wrote:That sounds leet :O

I am sooo stealing that idea.

*opens up VB*
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#7
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.
Reply
#8
Verrigan, I always used just "Randomize", without Timer. What seed it uses I use only "Randomize"?
Reply
#9
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 Wink
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)