using System.Collections.Generic;
public static void Main()
Dictionary<int, int> dict = new Dictionary<int, int>();
Random rand = new Random();
int nos = rand.Next(1, 20);
int val = rand.Next(1, 10000);
if (!dict.ContainsKey(nos))
Dictionary<int, int>.KeyCollection keys = dict.Keys;
Console.WriteLine("{0}", no);
Console.WriteLine("Please input an integer");
string input = Console.ReadLine();
bool success = int.TryParse(input, out number);
Dictionary<int, int>.KeyCollection keyss = dict.Keys;
if (dict.ContainsKey(number))
Console.WriteLine("You earned {0} dollars!", +dict[number]);
Console.WriteLine("BANG! You die!");