Ask a Question related to Ruby, Design and Development.
-
Paul DuBois #1
Re: Inconsistent rand() results with MySQL Ruby (long)
At 5:26 +0900 6/26/03, Dave Dembinski wrote:
[summary: ORDER BY RAND() * 10 doesn't seem very random]
What's your version of MySQL? A change was made in 3.23.56 to intialize
the randomizer better.
Paul DuBois Guest
-
Inconsistent bandwidth detection results using peldibwcheck
Hello I've implemented this bandwidth checker http://www.adobe.com/devnet/flashcom/articles/flvideo_bandwidth_print.html reccommended by adobe,... -
Recordset returning inconsistent results
I am developing a php site using mysql and apache. I have finally managed to get a database connection and am trying now to create some... -
#25694 [Ver->Csd]: round() and number_format() give inconsistent results.
ID: 25694 Updated by: iliaa@php.net Reported By: russ at kdimail dot com -Status: Verified +Status: ... -
#25694 [Opn->Ver]: Round and number_format give inconsistent results.
ID: 25694 Updated by: sniper@php.net Reported By: russ at kdimail dot com -Status: Open +Status: ... -
#25694 [NEW]: Round and number_format give inconsistent results.
From: russ at kdimail dot com Operating system: RedHat Linux 7.3 PHP version: 4.3.3 PHP Bug Type: *Math Functions Bug... -
Dave Dembinski #2
Re: Inconsistent rand() results with MySQL Ruby (long)
Paul DuBois <paul@snake.net> wrote in message news:<p05210624bb20cc97d5c0@[192.168.0.34]>...
Aha! I've 3.23.55. Well, I guess that explains part of the problem.> At 5:26 +0900 6/26/03, Dave Dembinski wrote:
>
> [summary: ORDER BY RAND() * 10 doesn't seem very random]
>
>
>
> What's your version of MySQL? A change was made in 3.23.56 to intialize
> the randomizer better.
I want to thank everyone for helping, and it's now working somewhat
the way I want it. Instead of relying on rand() by itself I'm passing
it a seed composed of a number generated by ruby's rand() and the
current system time in seconds, and that's giving me some comfortably
random results.
_dave
Dave Dembinski Guest



Reply With Quote

