예제 #1
0
        public object Generate()
        {
            var       returnValue  = new List <int>();
            var       intGenerator = new IntGenerator();
            const int amount       = 5;

            for (var i = 0; i < amount; i++)
            {
                returnValue.Add((int)intGenerator.Generate());
            }

            return(returnValue);
        }
예제 #2
0
        public object Generate()
        {
            var intGenerator = new IntGenerator();

            return((long)intGenerator.Generate());
        }
예제 #3
0
        public object Generate()
        {
            var intGenerator = new IntGenerator();

            return(((int)intGenerator.Generate() >= 0) ? true : false);
        }