Talk:Seven-sided dice from five-sided dice: Difference between revisions
Content added Content deleted
(Created page with 'It's more common for computer random number generators to generate a random number from 0 to n-1, than from 1 to n. So I propose changing the definitions of dice5() and dice7() t…') |
(Please don't change it.) |
||
Line 1: | Line 1: | ||
It's more common for computer random number generators to generate a random number from 0 to n-1, than from 1 to n. So I propose changing the definitions of dice5() and dice7() to generate integers from 0..4 and 0..6, respectively. It will make the math a little simpler. --[[Special:Contributions/96.238.211.175|96.238.211.175]] 08:26, 9 August 2009 (UTC) |
It's more common for computer random number generators to generate a random number from 0 to n-1, than from 1 to n. So I propose changing the definitions of dice5() and dice7() to generate integers from 0..4 and 0..6, respectively. It will make the math a little simpler. --[[Special:Contributions/96.238.211.175|96.238.211.175]] 08:26, 9 August 2009 (UTC) |
||
:Hi, please don't change this as it is more common for dice to count from 1. It is better to make the program adapt to the problem in this case. --[[User:Paddy3118|Paddy3118]] 08:56, 9 August 2009 (UTC) |
Revision as of 08:56, 9 August 2009
It's more common for computer random number generators to generate a random number from 0 to n-1, than from 1 to n. So I propose changing the definitions of dice5() and dice7() to generate integers from 0..4 and 0..6, respectively. It will make the math a little simpler. --96.238.211.175 08:26, 9 August 2009 (UTC)
- Hi, please don't change this as it is more common for dice to count from 1. It is better to make the program adapt to the problem in this case. --Paddy3118 08:56, 9 August 2009 (UTC)