Random Decimal/es: Difference between revisions

From StarLogo Nova Wiki
 
(Updating to match new version of source page)
 
Line 1: Line 1:
<languages/>
<languages/>
<div lang="en" dir="ltr" class="mw-content-ltr">
<section begin="image"/>[[File:random_decimal.png|alt=The Random Decimal Block|thumb]]<section end="image"/>
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
==Usage==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
<p id=tooltip>A random decimal between 0 and 1.</p>
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
==Example==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:random_decimal_example.gif|alt=Random Decimal example gif|thumb]]
[[File:random_decimal_example.png|alt=Random Decimal example code|thumb]]
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
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.
</div>


[[Category:Matemática]]
[[Category:Matemática]]
[[Category:Code Block]]
[[Category:Code Block]]

Latest revision as of 17:25, 14 August 2023

Other languages:
The Random Decimal Block

Usage

A random decimal between 0 and 1.

Example

Random Decimal example gif
Random Decimal example code

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.