
If you write code for a living you may just be an undiscovered musician. Microsoft's Sound of Code Generator can convert any C# of VB string of commands into polished piece of rock, pop, or hip hop. Just copy and past your code into the generator, click the settings and then listen. If you like what you hear you can name it and share the music with others. Now, Microsoft uses Silverlight for this application, so when you copy and paste try the keyboard command Ctrl-V to paste it into the website. If you don't have any code handy, here's two samples below you can try out.
Sample 1:
public static object ConvertParameter(string parameterValue, Type type){if (type == typeof(LetterPosition))return TranslationEngine.GetLetterPositionFromString(type, parameterValue);else if (type == typeof(TaglineInsertType))return TranslationEngine.GetTaglineInsertTypeFromString(type,parameterValue);else return System.Convert.ChangeType(parameterValue, type);}
Sample 2:
private static bool ExecuteRandomRule(int seed){System.Random intital = new Random();int input = intital.Next(1000000);System.Random random = new Random(input);int rand = random.Next(0, seed);if (rand == 0)return true;elsereturn false;}