The second of this week's new samples deals with random
number generation. It not only illustrates how to use the
.NET Framework's Random class, but also does some form
validation using the ASP.NET validation controls which
makes it worth a quick look even if you don't plan on
randomizing anything.
Of particular interest is the third validation control. It
doesn't just validate against a constant or check for a value
in a static range. Instead it compares to the value of
another control on the page. It's not really all that hard,
but it's pretty cool and darn useful.