Skip to content

Commit

Permalink
docs: Fix inclusive/exclusive issue for random.random() tutorial. (#781)
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-carlos authored Oct 28, 2022
1 parent 1a385d3 commit 15d1e80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/tutorials/random.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ random integers up to, but not including, the value of the argument ``N``
Sometimes you need numbers with a decimal point in them. These are called
*floating point* numbers and it's possible to generate such a number with the
``random.random`` method. This only returns values between ``0.0`` and ``1.0``
inclusive. If you need larger random floating point numbers add the results
(it includes ``0.0`` but excludes ``1.0``).
If you need larger random floating point numbers add the results
of ``random.randrange`` and ``random.random`` like this::

from microbit import *
Expand Down

0 comments on commit 15d1e80

Please sign in to comment.