Пример #1
0
        internal static object RandomVal(Type tp)
        {
            Randomm rndm = new Randomm();

            if (tp != null)
            {
                return(rndm.GetType().GetMethod("Next" + tp.Name).Invoke(rndm, new object[] { }));
            }
            else
            {
                return("");
            }
        }
Пример #2
0
 internal static object RandomVal(Type tp)
 {
     Randomm rndm = new Randomm();
     if (tp != null)
         return rndm.GetType().GetMethod("Next" + tp.Name).Invoke(rndm, new object[] { });
     else
         return "";
 }