Random Decimal: Difference between revisions
(Created page with "<languages/> <translate> Category:Math Category:Code Block </translate>") |
(Marked this version for translation) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:2--> | |||
<section begin="image"/>[[File:random_decimal.png|alt=The Random Decimal Block|thumb]]<section end="image"/> | |||
==Usage== <!--T:3--> | |||
<!--T:4--> | |||
<p id=tooltip>A random decimal between 0 and 1.</p> | |||
==Example== <!--T:5--> | |||
<!--T:6--> | |||
[[File:random_decimal_example.gif|alt=Random Decimal example gif|thumb]] | |||
[[File:random_decimal_example.png|alt=Random Decimal example code|thumb]] | |||
<!--T:7--> | |||
This model simulates the progression of an epidemic with some random initial infected population (e.g. a foodborne disease). By using the [[Special:MyLanguage/With % Chance|with percent chance]] block over a large number of turtles, the initial fraction of sick turtles is approximately the random decimal * 100. | |||
<!--T:1--> | |||
[[Category:Math]] | [[Category:Math]] | ||
[[Category:Code Block]] | [[Category:Code Block]] | ||
</translate> | </translate> |
Latest revision as of 15:47, 14 August 2023
Usage
A random decimal between 0 and 1.
Example
This model simulates the progression of an epidemic with some random initial infected population (e.g. a foodborne disease). By using the with percent chance block over a large number of turtles, the initial fraction of sick turtles is approximately the random decimal * 100.