WFRP 3rd Edition Google Hangout Extension All the ideas and discussions
0 votes Vote

Random.org results are not properly distributed.

I'm the original author of the EotE roller at game2.com, and as it happens was updating my roller for WFRP (group game change, wee). I just finished last night and then discovered this one - go go wasted effort. :) Anyway, when I was working on my code, I had to adjust the LCM of the dice when submitting and using results from RANDOM.org - for EotE with 6, 8 and 12 sided dice it was 24, for WFRP with 6, 8 and 10 sided dice it's 40. So you'll need to change
face = Math.floor((random * die.sides.length) / 24);
to be / 40 and
randomRequest.open("POST","http://www.random.org/integers/?num="+dice.length+"&min=0&max=23&col=1&base=10&format=plain&rnd=new",true);
to max=39, otherwise conservative and reckless rolls will not be evenly distributed among potential die faces. Probably should have put that in a var :)

Byron , 17.01.2014, 20:36
Idea status: completed

Comments

Byron, 18.01.2014, 16:33
And I forgot the lowly 6 - LCM is 120 :)

Leave a comment