Talk:Subtractive generator: Difference between revisions

Content added Content deleted
No edit summary
Line 47: Line 47:
::: Eh wait, current description is still off by 1. <math>r(34 n - 1\mod 55) = s(n)</math> is equiv to <math>s(34 (1 + n)\mod 55) = r(n)</math> for <math> n = 0\cdots 54</math> --[[User:Ledrug|Ledrug]] 19:54, 2 August 2011 (UTC)
::: Eh wait, current description is still off by 1. <math>r(34 n - 1\mod 55) = s(n)</math> is equiv to <math>s(34 (1 + n)\mod 55) = r(n)</math> for <math> n = 0\cdots 54</math> --[[User:Ledrug|Ledrug]] 19:54, 2 August 2011 (UTC)
::: While the introductory text uses i=55, j=24, the step by step breakdown seems to use i=55, j=21 and 34 just happens to be i-j. And my implementation still does not quite work right, but maybe I should wait a bit for the task description to settle down. --[[User:Rdm|Rdm]] 19:58, 2 August 2011 (UTC)
::: While the introductory text uses i=55, j=24, the step by step breakdown seems to use i=55, j=21 and 34 just happens to be i-j. And my implementation still does not quite work right, but maybe I should wait a bit for the task description to settle down. --[[User:Rdm|Rdm]] 19:58, 2 August 2011 (UTC)
:::: No no, 21 is used for shuffling state array during init, while 24 is used for generating random numbers, they are not the same number. --[[User:Ledrug|Ledrug]] 20:02, 2 August 2011 (UTC)