string[] myImages = { "/images/one.gif", "/images/two.gif", "/images/three.gif" };
string randomItem = myImages[ new Random().Next( 0, my.GetLength(0) ) ];
A collection of notes, code snippets, instructions, et cetera for myself.
All text © Mattio Valentino.
All code is free content. Do what you will with it.
No comments:
Post a Comment