using System.Collections.Generic;
public static void Main()
List<int> list = new List<int>();
Random rnd = new Random(0);
int randN = rnd.Next(1, 21);
if (list.Contains(randN))
Dictionary<int, int> dictionary = new Dictionary<int, int>();
for (int i = 0; i < 10; i++){
int price = rnd.Next(1, 10001);
dictionary.Add(list[i],price);
Console.WriteLine("Please enter a number:(1-20)");
int input = Convert.ToInt32(Console.ReadLine());
if (dictionary.ContainsKey(input)){
int value = dictionary[input];
Console.WriteLine("You earned {0} dollars!",value);
Console.WriteLine("BANG! You die!");