Fix -random.
Add rand.
Add a recursion limit for subcommands (elliott).