procgen  Diff

Differences From Artifact [851e9817dd]:

To Artifact [d5281d581a]:


            1  +; [ʞ] bot.scm
            2  +;  ~ lexi hale <lexi@hale.su>
            3  +;  © affero general public license
            4  +;  > (load "lib/lisp-macro.scm")
            5  +;    (load "lib/bot.scm")
            6  +
     1      7   ; prep the random number generator
     2      8   (import (chicken random))
     3      9   (set-pseudo-random-seed! (random-bytes))
     4     10   
     5     11   ; generates a (case) structure that randomly returns
     6     12   ; one of its branches at equal probability
     7     13   (define-for-syntax (@one-of case-fn strs)