It recurs to me this thread tells the same tail over and over, with very little by way of return. 


I've seen this one before, it's a great explanation. But those three values are the easy ones - how do you fit in Henry, Farad, and so forth?

* Deozaan views google.com source.
Where I commit thought crimes...

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;
}
The BipCot NoGov License allows any use of software, media, products or services EXCEPT by governments. The BipCot NoGov License threatens no “government guns” for violators. It is not copyright-based, it is entirely shame-based.
A programmer's wife tells him, "Go to the supermarket and get some bread. While you're there, get eggs."Spoiler (click to show/hide)
He never comes back.
A programmer's wife tells him, "Go to the supermarket and get a loaf of bread. If they have eggs, get a dozen."That's lovely.
What's even more impressive - it says, of the day, so they must change the code daily.

Original address: https://www.donationcoder.com/forum/index.php?topic=35756.0