Page 2 of 2

Posted: Sun May 07, 2006 2:17 am
by SoulReaper
hi folks :)

to be honest, I dont think there is such thing as a true random number generator...

I guess what i am trying to say is that it will have repetition, even in the spectrum and amiga days, it was not perfect and that was using an interrupt counter routine with a seed and add and multply, using quick instructions.

mind you CPUs have more power now so maybe it is possible to get closer to true random numbers.

@Trond
Nice Routine :) Respect! :wink:

Regards
Kevin :wink:

Re: True random function

Posted: Sun May 07, 2006 3:06 am
by Phoenix
What do you mean by "true random"??? Is PureBasic's Random() command buggy???

Posted: Sun May 07, 2006 3:50 am
by SoulReaper
No its fine... :?

In the title its say True...Random

What i meant is that nothing is perfect e.g. the universe is not perfect :wink:

okay maybe Fred is Perfect and PureBasic :roll: :wink:

P.S. its random enough for us mortals :lol:

Regards
Kevin :wink:

Posted: Sun May 07, 2006 11:35 am
by Derek
Since the majority of random routines are probably used in games wouldn't it make sense to use a random number routine that uses the players position, speed or whatever they can influence in the game as part of the routine and that should probably make the game random enough.

I know random numbers are used in non-games but I would have thought that most of the time that was for testing purposes and so true randomness wasn't that important.