Page 1 of 1

Why does CC use RANDOM.org?

PostPosted: Tue Mar 18, 2008 9:58 pm
by spearfish
Doesn't the transfer of numbers make it easier to hack it, or at least know what's coming up?

Meanwhile there's a random number generator built into PHP, here are my results from using it:
1000000 trials: 166870-166405-166726-166413-166530-167056
16.687%-16.6405%-16.6726%-16.6413%-16.653%-16.7056%

Here's the code if you guys want to try it on your own ;-)

<?php
for ( $counter = 0; $counter < 1000000; $counter++) {
$i = mt_rand(1,6);
if ( $i == 1) {
$one++;
}
if ( $i == 2) {
$two++;
}
if ( $i == 3) {
$three++;
}
if ( $i == 4) {
$four++;
}
if ( $i == 5) {
$five++;
}
if ( $i == 6) {
$six++;
}
}
echo "$counter trials: $one-$two-$three-$four-$five-$six";
$one = $one / 10000;
$two = $two / 10000;
$three = $three / 10000;
$four = $four / 10000;
$five = $five / 10000;
$six = $six / 10000;
echo "<br /> (or $one%-$two%-$three%-$four%-$five%-$six&)";
?>

Re: Why does CC use RANDOM.org?

PostPosted: Tue Mar 18, 2008 10:06 pm
by DiM
spearfish wrote:Doesn't the transfer of numbers make it easier to hack it, or at least know what's coming up?


i doubt hacking the dice is easy. random.org provides randomness for a lot of sites not only CC and so far i heard nothing about hacks.

as for knowing what dice come next, that wouldn't help at all since the dice come so fast it would be humanly impossible to press attack at an exact moment.

let's say i know the next 3 rolls are 6-6-6 vs 1-1. before i have time to read that and press attack those rolls are already used by somebody else.

PostPosted: Tue Mar 18, 2008 10:13 pm
by gloryordeath
they just like to hear about how bad the dice suck.... :lol:

PostPosted: Tue Mar 18, 2008 10:19 pm
by spearfish
Well Random.org does charge a small fee.... and mt_rand is free.

PostPosted: Tue Mar 18, 2008 10:43 pm
by dividedbyzero
spearfish wrote:Well Random.org does charge a small fee.... and mt_rand is free.


Probably because mt_rand isn't truly random. No computer generated random function is truly random by itself.

PostPosted: Tue Mar 18, 2008 11:17 pm
by greenoaks
Lack uses random.org because for the one low fee they provide two sets of random dice files. the second file is for premium members only.

PostPosted: Wed Mar 19, 2008 12:03 am
by owenshooter
greenoaks wrote:Lack uses random.org because for the one low fee they provide two sets of random dice files. the second file is for premium members only.


we aren't supposed to discuss this in the open! someone needs to lock this down now and delete it before the word gets out!!-0

PostPosted: Wed Mar 19, 2008 12:08 am
by Iliad
owenshooter wrote:
greenoaks wrote:Lack uses random.org because for the one low fee they provide two sets of random dice files. the second file is for premium members only.


we aren't supposed to discuss this in the open! someone needs to lock this down now and delete it before the word gets out!!-0
Why did you ruin that call? :roll:

PostPosted: Wed Mar 19, 2008 4:07 am
by yeti_c
spearfish wrote:Well Random.org does charge a small fee.... and mt_rand is free.


Actually random.org is free...

Also - there is no "data feed" from random.org - that can be "hacked"... it's done by ... <muffled noises>...

PostPosted: Wed Mar 19, 2008 6:23 am
by BaldAdonis
yeti_c wrote:
spearfish wrote:Well Random.org does charge a small fee.... and mt_rand is free.


Actually random.org is free...

Also - there is no "data feed" from random.org - that can be "hacked"... it's done by ... <muffled noises>...
Did I hear carrier pigeons?

I'd also wager that it's easier to request the data from random.org and then read it, as opposed to processing all the dice on conquerclub.

PostPosted: Wed Mar 19, 2008 6:50 am
by firth4eva
dividedbyzero wrote:
spearfish wrote:Well Random.org does charge a small fee.... and mt_rand is free.


Probably because mt_rand isn't truly random. No computer generated random function is truly random by itself.

True. They only use different sections of pi.

PostPosted: Wed Mar 19, 2008 9:07 am
by spearfish
And btw Yeti, they *do* charge. I worked it out; CC pays about $1.50 daily.

PostPosted: Wed Mar 19, 2008 9:11 am
by yeti_c
Really?

I reckon I can just go here

http://www.random.org/files/

And download the files for free...

C.

PostPosted: Wed Mar 19, 2008 3:19 pm
by spearfish
That works, but if somebody found out which file they were using, ouch!

I was just wondering, that's all, because the Mersenne Twister algorithm is more than accurate enough for the site's purposes.

PostPosted: Wed Mar 19, 2008 4:09 pm
by yeti_c
spearfish wrote:That works, but if somebody found out which file they were using, ouch!

I was just wondering, that's all, because the Mersenne Twister algorithm is more than accurate enough for the site's purposes.


And what are you gonna do if you know which file they're using?

First off you have to work out how to parse all those 1's and 0's into a "dice file"... and then you need to find where you are in the dice file when you roll the first roll - by the time you've worked that out - about 500 other rolls have rolled - and you won't know where you are in the dice file...

Also - what happens if they use more than 1 file? They could also then change the order of the files...

Either way - you aren't gonna be able to "hack" the dice.

C.

PostPosted: Wed Mar 19, 2008 5:22 pm
by spearfish
Sounds good. Converting the 0's and 1's to dice rolls is easy though. Take a set of six numbers and add them up!

Yet the Help file says that they have a 5 x 500,000 list of numbers, meaning they have them 1-6.