Re: Once again: 64 bit version of random needed. (Probably 128 bit needed)



On Fri, 6 Jul 2007 21:46:53 +0200, in a message titled <<Re: Once again: 64 bit version of random needed. (Probably 128 bit needed)>>, "Skybuck Flying" <spam@xxxxxxxxxxx> wrote:


"Rudy Velthuis" <newsgroups@xxxxxxxxxxxx> wrote in message
news:xn0f8e1mriavitw018rvelthuis@xxxxxxxxxxxx
Skybuck Flying wrote:

Hello,

For my test program I need a 64 bit version of this 32 bit random
version:

Just call the 32 bit one twice and multiply the results.

Something weird is going one with the random function in Delphi 2007 or with
my computer.

I'm just guessing, but if you look at the help I bet they call it a "pseudo-random"
generator, not a random number generator. That's not just because the author
thinks "psuedo" is a funny looking word and likes to use it.

I was under the impression the random function always generated each value
between 0 and range-1 for range number of calls.

However will using a bitset, some values are generate more often than others
?!?!?!

Clearly you never finished the statistics and probability portion of the curriculum
at Shady Coorespondence Computer School. The probability of a coin coming
up heads is 50%. If I flip it twice and it comes up tails both times, is the coin
defective?

Is there something wrong the Tbits ?

Nope.

Is there something wrong with my computer's memory ?

Nope. Well, did you get it as part of an erollment package from SCCS?

Or

Is there something wrong with my memory ? ;)

Probably. But you have to know something to forget it.


Or

Did Delphi 7 use a different random number generator.


To head off all future Fucktard Crying threads on random numbers:

Create a 0/1 (pseudo) random number generator
Perform bitshifting and OR'ing and you now have an N-bit (pseudo)
random number generator.

QED


.


Loading