Translate

Saturday, 25 April 2015

C# Random number

 protected void btnRandom_Click(object sender, EventArgs e)
    {
        Random Rnumber = new Random();
       // int x = Rnumber.Next(maxValue);
        int RandommaxValue = Rnumber.Next(99999999);
        //int RandomMaxMinValue = Rnumber.Next(MinVal, MaxVal);
        int RandomMaxMinValue = Rnumber.Next(0,99999999);
        Response.Write(RandommaxValue);
    }

No comments:

Post a Comment