messagebox
public text v1 · immutable public void RandomMapButton_Click(int i, int n_x_down_, int n_x_up_)
{
for (int k = n_x_down_; k <= n_x_up_; k++)
{
int j;
Random randomObject = new Random();
j = randomObject.Next(0, i+1);
//MessageBox.Show(j.ToString());
for (int l = 1; l <= ny; l++)
{
if (solo[k, l] != 1 && j <= i)
{
solo[k, l] = 1;
j++;
}
}
j = 0;
}
}