GoodAI.Modules.School.Worlds.RogueTeacher.GetRandomAction C# (CSharp) Méthode

GetRandomAction() public static méthode

public static GetRandomAction ( Random rndGen, int degreeOfFreedom ) : Actions
rndGen System.Random
degreeOfFreedom int
Résultat Actions
        public static Actions GetRandomAction(Random rndGen, int degreeOfFreedom)
        {
            Array values = Enum.GetValues(typeof(Actions));
            return (Actions)values.GetValue(rndGen.Next(degreeOfFreedom * 2));
        }