NumericUpDown.NextValue C# (CSharp) Method

NextValue() private method

private NextValue ( int current, string tag ) : int
current int
tag string
return int
    public int NextValue(int current, string tag)
    {
        return new Random().Next(Math.Min(1000, Math.Max(0, current)), 1001);
    }