From 7042413e580a0709340a1bd04130d7a277b2c882 Mon Sep 17 00:00:00 2001 From: Glenn Hutchings Date: Sat, 16 Apr 2016 21:30:29 +0100 Subject: [PATCH] Use 'samp' role to fix another todo. --- chapters/11.rst | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/chapters/11.rst b/chapters/11.rst index ec95f79..2601971 100644 --- a/chapters/11.rst +++ b/chapters/11.rst @@ -284,13 +284,9 @@ costumed Captain, but not on a completely predictable basis. if (random(2) == 1) ... -.. todo:: - - "expression" in "random(expression)" should be typewriter and italic - ``random`` is an Inform routine used to generate random numbers or to choose randomly between given choices; in the form -``random(expression)`` it returns a random number between 1 and +:samp:`random({expression})` it returns a random number between 1 and ``expression`` inclusive. So our condition is actually stating: if a random choice between 1 and 2 happens to be 1 then perform some action. Remember that a daemon is run once at the end of every turn, so the -- 2.31.1