X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=chapters%2F11.rst;h=26019719229b0c7bba45553a2e8856df1b3fb983;hb=dc7fec99d92b670126e1e73e05df8f60706edc2d;hp=ec95f79cf3c56bfaccf4c773116c08ca0c3a9951;hpb=6f29703a02de1ec9cac82267ff0ea24a01679de6;p=ibg.git 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