###get a random number from a range between 1 and 5
Random random = new Random();
int randomNum = random.Next(1,5);
###hardcode app.config name into binary
System.Configuration.ConfigurationManager.OpenExeConfiguration("YourMam.exe.config");
###image/exe name
Console.WriteLine(System.AppDomain.CurrentDomain.FriendlyName);
if you need full path use this instead
Console.WriteLine(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName);
###version/build number
var assembly = System.Reflection.Assembly.GetExecutingAssembly();
Console.WriteLine(assembly.GetName().Version.ToString());