Why don't you just use the Random class?