05-18-2015 03:44 AM
05-18-2015 01:15 PM
"Svenviking" wrote:
Or maybe something where you enter the app names, it places them all into a virtual hat, mixes them up, and draws out mine at random.
Edit: Here it is:using System;
class VirtualHat
{
string RandomPick( string[] appNames ) // Please avoid typos.
{
string randomSelection;
Random rand = new Random();
do
randomSelection = appNames[ rand.Next(0, appNames.Length) ]; // Always selected by COMPLETELY FAIR random choice
while( randomSelection.IndexOf("scorched", StringComparison.OrdinalIgnoreCase) < 0 ); // Watch out for case-sensitivity!
return randomSelection;
}
}
05-18-2015 01:22 PM
05-18-2015 01:23 PM
05-18-2015 01:35 PM
05-18-2015 01:57 PM
05-18-2015 02:30 PM
"drash" wrote:
The repeated use of "Always" in this thread has gotten this stuck in my head now.
05-18-2015 05:07 PM
05-18-2015 05:24 PM
05-18-2015 05:27 PM
05-18-2015 05:27 PM