public static Operand Generate() { return(new Operand { Character = Characters.Keys.PickRandom(), Shape = Shape.Generate(), Symbol = SymbolData.Generate(), Operation = Random.value > 0.25f ? CornerOperation.None : new[] { CornerOperation.Invert, CornerOperation.AbsoluteValue, CornerOperation.Square, CornerOperation.Cube }.PickRandom() }); }