public IdCard(IRandomProvider randomProvider) { foreach (var i in Enumerable.Range(0, 8)) { Number += randomProvider.GetNumber(0, 9) * (int)System.Math.Pow(10, i); } }