Assuming your Gem
class like:
class Gem
{
public int X {get;set;}
public int Y {get;set;}
// information about color/type/whatever
}
You can do something like:
//make sure to have single instance of `Random` for class/whole program
Random rnd = new Random();
var gems = Enumerable.Range(1,10) // 10 items
.Select(i => new Gem { // create new Gem
X = rnd.Next(1, 100), // set position to random value 1-100, adjust to
Y = rnd.Next(1, 100), // desired width/height ranges
})
.ToList();// convert enumerable to list.