in this we programming tutorial we will learn that how we can create random number in asp.net using c#. see the below code and just copy and paste.
Random rand = new Random((int)DateTime.Now.Ticks); int numIterations = 0; numIterations= rand.Next(1, 100); Response.Write(numIterations.ToString());
1 comment:
really nice and informative post thanks for sharing it. Keep up.
Post a Comment