On Aug 18, 2006, at 23:04 UTC, mrebar darkwing wrote:

> Have I made a silly mistake?

Yes: you're creating a new Random object within the loop, and drawing
just the first item in each such random sequences.  Numbers are random
only *within* a sequence; not between sequences, as you found.  The LR
warns against this, but it's a very common mistake anyway.

At the very least, you should create only one random object, outside
the loop.  Better still would be to make it static, so you have only
one per whole run of your app, like so:

  static r as New Random

Best,
- Joe

--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to