Well this is strange.
I forgot to lock my monitor when I walked away from my desk, at work, and one of my co-workers decided to have a little fun.
When I got back, I found this little C# console app code segment, sitting forefront on my machine. I ran it a few times, but the results don't really tell me anything.
Does anyone else know what this could mean??
void Main()
{
GetEwe();
Console.WriteLine($"You have been given: {Ewe}");
}
public enum Directions { Up, Down, Left, Right, Forward, Backward, Diagonally };
public Directions? Ewe;
public Directions GetEwe()
{
Random rand = new Random(DateTime.Now.Millisecond);
do
{
Ewe =
(
from direction in Enum.GetValues(typeof(Directions)).OfType<Directions>()
//let u = Directions.Down
select direction
).ElementAt(rand.Next(0, Enum.GetNames(typeof(Directions)).Length));
}
while (Ewe == Directions.Up);
return Ewe.Value; Around();
}
private void Around()
{
Ewe = null;
}