On Fri, June 29, 2007 4:57 am, Ryan A wrote:
> Have a quick question about which is better to get real random values,
> shuffle or mt_rand.
I *thought* that shuffle used mt_rand under the hood, but could be
totally wrong...
As far as REAL random values goes, that's an encyclopedia of
information,
On 6/29/07, Ryan A <[EMAIL PROTECTED]> wrote:
Just did a quick benchmark for 10.000 hands (making a full deck on
your code, 23.5 players):
Microtime difference:
Ryan's code:15.725826978683
Tijnema's code:0.40006709098816
Unique decks out of 1:
Ryan's code:1
Tijnema's code:1
When mak
Just did a quick benchmark for 10.000 hands (making a full deck on
your code, 23.5 players):
Microtime difference:
Ryan's code:15.725826978683
Tijnema's code:0.40006709098816
Unique decks out of 1:
Ryan's code:1
Tijnema's code:1
When making a full deck my code is 40 times faster, and
Just did a quick benchmark for 10.000 hands (making a full deck on
your code, 23.5 players):
Microtime difference:
Ryan's code:15.725826978683
Tijnema's code:0.40006709098816
Unique decks out of 1:
Ryan's code:1
Tijnema's code:1
When making a full deck my code is 40 times faster
On 6/29/07, Ryan A <[EMAIL PROTECTED]> wrote:
Hey,
Have a quick question about which is better to get real random values, shuffle
or mt_rand.
I am trying to shuffle a deck of cards and reading another thread I saw that
after a couple of thousand random generations patterns have been observed
Ryan A wrote:
Hey,
Have a quick question about which is better to get real random values, shuffle
or mt_rand.
I am trying to shuffle a deck of cards and reading another thread I saw that
after a
> couple of thousand random generations patterns have been observed
> using rand()... so its bett
Hey,
Have a quick question about which is better to get real random values, shuffle
or mt_rand.
I am trying to shuffle a deck of cards and reading another thread I saw that
after a couple of thousand random generations patterns have been observed using
rand()... so its better to use mt_rand().
7 matches
Mail list logo