rand()

btmux-0.6-rc4/game/text/help/cat_mux/cat_functions/rand() · 270 B

From the archive btonline-btechmux-0.6-rc4.tbz2

Download the archive   « Back to the archive contents

& rand()
 
  Syntax: rand(<num>)
 
  Rand returns an integer between 0 and num-1.
 
  Example:
 
  > say rand(10)
  You say "6"
  > say rand(10)
  You say "1"
  > say rand(10)
  You say "4"
  > say rand(10)
  You say "9"
  > say rand(10)
  You say "1"

Site Stats

Snippets: 1791
Codebases: 571