public async Task <IEnumerable <Weapon> > GetRandomSet(int numberInSet) { int tableCount = await _repo.GetCount(); var rand = new Random(); List <Weapon> weaponsToReturn = new List <Weapon>(); for (int i = 0; i < numberInSet; i++) { var weapon = await this.GetEntity(rand.Next(1, tableCount + 1)); weaponsToReturn.Add(weapon); } return(weaponsToReturn); }