public override string SetOfNumber() { StringBuilder sb = new StringBuilder(); FlashedNumbers.ForEach(x => sb.AppendFormat("{0},", x)); return(sb.ToString().TrimEnd(',')); }
public override string GenerateNextNumber() { int nextNumber = _randomgenerator.Next(MinNumber, MaxNumber); FlashedNumbers.Add(nextNumber); return(nextNumber.ToString()); }
public override string CalculateResult() { long product = 1; FlashedNumbers.ForEach(x => product *= x); return(product.ToString()); }
public override string GenerateNextNumber() { int nextNumber = _randomgenerator.Next((int)MinNumber, (int)MaxNumber); double precision = nextNumber + _randomgenerator.NextDouble(); FlashedNumbers.Add(precision); return(precision.ToString("N2")); }
public override string CalculateResult() { return(FlashedNumbers.Sum().ToString()); }