# Random number from list c#

##### *2020-01-25 18:13*

To generate a random number whose value ranges from 0 to some other positive number, use the Random. Next(Int32) method overload. To generate a random number within a different range, use the Random. Next(Int32, Int32) method overload. Notes to InheritorsSep 15, 2014 Hi Determine the amount of random numbers int 1; List Numbers new List (new int [ 1, 2, 3); Create a list of numbers from which the routine shall choose the result numbers List possibleNumbers Numbers; for (int i smallestNumber; i biggestNumber; i) Create a list, which shall hold the result numbers List random number from list c#

Hello I'm having trouble with part of my code. I have a dictionary and the key is a number and the value for the key is a list of random integers between 18. For some reason after the first key and value are added all the other key's values are the same as the first. This is the output right now which is wrong.