projects
/
ibg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ca43fde
)
Use 'samp' role to fix another todo.
author
Glenn Hutchings
<zondo42@gmail.com>
Sat, 16 Apr 2016 20:30:29 +0000
(21:30 +0100)
committer
Glenn Hutchings
<zondo42@gmail.com>
Sat, 16 Apr 2016 20:30:29 +0000
(21:30 +0100)
chapters/11.rst
patch
|
blob
|
history
diff --git
a/chapters/11.rst
b/chapters/11.rst
index ec95f79cf3c56bfaccf4c773116c08ca0c3a9951..26019719229b0c7bba45553a2e8856df1b3fb983 100644
(file)
--- 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) ...
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`` 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
``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