Random Decimal

From StarLogo Nova Wiki
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.