Example #1
0
        public FunctionCall randomexec(string arg_txt)
        {
            string[]        args      = arg_txt.Split(',');
            NumberGenerator percent   = NumberGenerator.Parse(args[0]);
            string          file_path = args[1];

            return(delegate()
            {
                if (RandomGenerator.RandomBool(percent.GetDouble()))
                {
                    return ExecFileBreakable(file_path);
                }
                return FunctionResult.Continue;
            });
        }