int count = 0;
Random rdmamt = new Random();
int amount = rdmamt.Next(0,8);
int x = rdmamt.Next(0, 16);
int y = rdmamt.Next(0, 13);
if (count <= amount)
{
for (int i = 0; i < amount; i++)
{
Playarea.Add(new BoxView()
{
Color = Colors.DarkGray,
}, x, y);
}
}
int count = 0;
Random rdmamt = new Random();
int amount = rdmamt.Next(0,8);
int x = rdmamt.Next(0, 16);
int y = rdmamt.Next(0, 13);
if (count <= amount)
{
for (int i = 0; i < amount; i++)
{
Playarea.Add(new BoxView()
{
Color = Colors.DarkGray,
}, x, y);
}
}