Random Decimal

From StarLogo Nova Wiki
Revision as of 15:47, 14 August 2023 by Admin (talk | contribs) (Marked this version for translation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.