public partial class whatever
{
private static int seed = Environment.TickCount;
Int32 RandomPen()
{
//int seed = DateTime.Now.Hour + DateTime.Now.Minute + DateTime.Now.Second +
DateTime.Now.Millisecond;
Random firstRandomNumber = new Random(seed++);
// the seed came from right above this ^ carrot character
Int32 x = firstRandomNumber.Next() % 100;
return x;
}
}