random numbers not random?



-> I need some random numbers, but i dont get them.

-> Int(Rnd*6)

-> gives me 4,3,3,1,1,4,0,4,4,4
-> always the same!!
-> how do i get real random numbers?

It sounds like you haven't initialized the RND generator, so it comes
up with the same sequence of numbers every time your program is run.

In most BASICs, you should put the following line at the *beginning* of
your program, so it will be executed just once when the program is run:

RANDOMIZE TIMER

That should fix the problem!

dow
.



Relevant Pages

  • Network Drive disconected
    ... Hi when i map Network Drive and that i dont use it for a while, ... is there a fix to not disconected the frive ??? ... Jac ... Prev by Date: ...
    (microsoft.public.windowsxp.general)
  • RE: Error COOD11CD Big Brother Livestream
    ... hi my name is john i am having the same problem and i dont no how to fix it ... Prev by Date: ...
    (microsoft.public.windowsmedia.player)
  • RE: Error code C00D2EEA
    ... Im having the same problem and dont know what to do. ... If you know how to fix ... > Any advice on this error code would be grateful. ... Prev by Date: ...
    (microsoft.public.windowsmedia.player)
  • Re: Joust power supply question
    ... I dont have the stuff to fix the o.g. ... Prev by Date: ...
    (rec.games.video.arcade.collecting)
  • Help with Error loadinc C:/
    ... SPECIFIED MODULE COULD NOT BE FOUND. ... dont know how to fix it. ... Prev by Date: ...
    (microsoft.public.win2000.general)

Loading