Esempio n. 1
0
        public ActionResult Index()
        {
            IRandomNumberGenerator rng = new AdvancedRandomNumberGenerator();

            Session["Answer"] = rng.GetNext(1, 10);  //Random number generator, find a better one for a challenge

            return(View());
        }
Esempio n. 2
0
        public ActionResult Index()
        {
            IRandomNumberGenerator rng = new AdvancedRandomNumberGenerator();

            Session["Answer"] = rng.GetNext(1, 10);

            return(View());
        }