andrewhowdencom / courses.pito

Examples & assignments for the course "Practical introduction to Observability".
GNU Affero General Public License v3.0
6 stars 4 forks source link

Improve wording on random number generator #25

Open andrewhowdencom opened 10 months ago

andrewhowdencom commented 10 months ago

Section

Pillar 2: Distributed Tracing

Lecture

Status

Time Code

5:33

What happened?

The random number generator says something like "RNG between 0 and 1 generates the number 1". This is true for go (as it is in an int), but Python (as a comparison) generate sas float within that interval.

This should be made clearer by type-converting it to a bool deliberately or similarly, making that more apparent.

H/T to @alexpovel