Random numbers in C#

前端 未结 6 630
我寻月下人不归
我寻月下人不归 2021-01-24 19:52

I get the error below when I try to run the application I am sure its something simple but I dont see it. What I am trying to do it when I click a button I have labeled Play. I

6条回答
  •  情话喂你
    2021-01-24 20:44

    You need to pass in values:

    private void btnPlay_Click(object sender, EventArgs e)
    {
        RandomNumber();
    
    }
    

    should be:

    private void btnPlay_Click(object sender, EventArgs e)
    {
        RandomNumber(0, 50000);
    
    }
    

提交回复
热议问题