Ejemplo n.º 1
0
        public static LValue choose(Game _assets, Domain _environment, LValue[] _arguments, Int32 _count, Stack <LValue> _stack)
        {
            if (_count == 0)
            {
                return(LValue.Undef());
            }
            int choice = WellGenerator.ENext(_count);

            return(_arguments[choice]);
        }
Ejemplo n.º 2
0
 public static LValue irandom_range(Game _assets, Domain _environment, LValue[] _arguments, Int32 _count, Stack <LValue> _stack)
 {
     return(LValue.Real(WellGenerator.INext((int)_arguments[0].Number, (int)_arguments[1].Number)));
 }