/* Copyright (C) 1991, Marcus J. Ranum. All rights reserved. */ /* configure all options BEFORE including system stuff. */ #include "config.h" #include "mud.h" #include "vars.h" /* run a command at random from a list of them */ /* ARGSUSED */ int cmd__rand (int argc, char *argv[], char *who, char *aswho) { int rnnum; if (argc < 2) return (UERR_NONE); rnnum = get_random (argc - 1) + 1; return (run (who, aswho, argv[rnnum], argc, argv, 0)); }