I have a table that I am trying to get a random number from:
//Fruits
id | FruitName
----------------
2 | Banana
3 | Apple
4 | Orange
6 | Grape
7 | Plum
8 | Lime
10 | Kiwi
The problem is because of the inconsistencies (note: ids 1, 5, and 9 are missing), writing the following statement will not work (even if written properly):
Random.Next(someLinq.id).First(), (samelinq.id).Last())
How would I get a random number from the numbers available?