Skip to content

Commit 8b99058

Browse files
robmarkcolefabaff
authored andcommitted
Clarify distribution of random values (home-assistant#4614)
Clarify that values drawn produce a discrete uniform distribution, and not for example a normal (or bell shaped) distribution. I intend to implement a random physics sensor which will return a bell distribution and this edit will avoid confusion.
1 parent 1515095 commit 8b99058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/_components/sensor.random.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ha_release: 0.32
1414
---
1515

1616

17-
The `random` sensor platform is creating random sensor values (integers) out of a given range. This can be useful if you want to test automation rules. It generates a new value every time it is polled.
17+
The `random` sensor platform is creating random sensor values (integers) out of a given range. Returned values form a [discrete uniform distribution](https://en.wikipedia.org/wiki/Discrete_uniform_distribution), meaning that each integer value in the range configured is equally likely to be drawn. This can be useful if you want to test automation rules. It generates a new value every time it is polled.
1818

1919
To enable the random sensor, add the following lines to your `configuration.yaml`:
2020

0 commit comments

Comments
 (0)