Spinner: Difference between revisions

no edit summary
mNo edit summary
No edit summary
 
Line 21: Line 21:
===Random Setting===
===Random Setting===
Spinners call [[RNG]] twice when they stop spinning<ref>https://www.youtube.com/watch?v=MiuLeTE2MeQ</ref>. The first call determines direction. If the result is less than 32768, the spinner spins clockwise, and otherwise counterclockwise. The second call determines intended angular displacement. Spinners calculate their intended angular displacement by the following formula, in which % denotes the [[wikipedia:modulo operation|modulo function]]:
Spinners call [[RNG]] twice when they stop spinning<ref>https://www.youtube.com/watch?v=MiuLeTE2MeQ</ref>. The first call determines direction. If the result is less than 32768, the spinner spins clockwise, and otherwise counterclockwise. The second call determines intended angular displacement. Spinners calculate their intended angular displacement by the following formula, in which % denotes the [[wikipedia:modulo operation|modulo function]]:
<nowiki>Intended Angular Displacement = (RNG % 4) * 30 + 30</nowiki>
<math display="block">\text{intended angular displacement} = \left(\mathrm{RNG}\ \%\ 4\right) \times 30 + 30</math>


The following is a table summarizing this information, with probabilities of the individual states in parentheses:
The following is a table summarizing this information, with probabilities of the individual states in parentheses:
Line 32: Line 32:
| '''RNG1 < 32768 (50.016893%)'''|| 30 (12.496545%) || 60 (12.508831%) || 90 (12.507295%) || 120 (12.504223%)
| '''RNG1 < 32768 (50.016893%)'''|| 30 (12.496545%) || 60 (12.508831%) || 90 (12.507295%) || 120 (12.504223%)
|}
|}
==References==
==References==
<references />
<references />
{{objects}}
{{objects}}
confirmed_editors
16

edits