Skip to content

Commit 36120f5

Browse files
committed
typo
1 parent dd11176 commit 36120f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_sources/Unit3-If-Statements/topic-3-3-if-else.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ they are not technically required to avoid this kind of confusion.
420420
Math.random() in if Statements
421421
-------------------------------
422422

423-
The ``Math.random()`` method returns a random number between 0.0 and 1.0. You can use this method with ``if`` statements to simulate a coin flip or an event occuring a certain percentage of the time. For example, if you want to simulate a coin flip, you can use check if the random number is less than 0.5 (halfway between 0 and .1) to simulate a 50% chance of heads or tails:
423+
The ``Math.random()`` method returns a random number between 0.0 and 1.0. You can use this method with ``if`` statements to simulate a coin flip or an event occuring a certain percentage of the time. For example, if you want to simulate a coin flip, you can check if the random number is less than 0.5 (halfway between 0 and .1) to simulate a 50% chance of heads or tails:
424424

425425
.. code-block:: java
426426

0 commit comments

Comments
 (0)