public static void Main()
Random rnd = new Random();
float essenceMultiplier = 6f;
int statValue = rnd.Next( 20, 20);
float multiplyByEssenceQuality = statValue * essenceMultiplier;
float percentByLevel = itemLevel / (float)(100);
int lowLevelStat = rnd.Next( 5, 15 );
finalStat += lowLevelStat;
finalStat = (int)Math.Round( multiplyByEssenceQuality * percentByLevel );
Console.WriteLine(finalStat);