Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
[QUIZ] Sampling (#39)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Randy Kramer, post: 4476031"] This is off-point for this particular post, and I apologize for not reading/remembering the original challenge, but when someone commented about it seeming odd that there were so many numbers prefixed, iirc, with something like 999999.., I got to thinking--the odd thing about this challenge is sorting the numbers. I don't think many of us are used to looking at a sorted list of random numbers and trying to judge whether they are random (if that's possible). Two examples: If you took 5 random numbers from in the interval 0..10, you might see something like this: 9, 3, 2, 6,4--"looks" fairly random. Now sort that list: 2, 3, 4, 6, 9--"looks" a lot less random. For even more fun, do it for a series of coin flips (with H for heads, T for tails, (and E for edge ;-))--you might get a sequence (for 6 flips) like H, T, T, H, T, H. Now sort that list: H, H, H, T, T, T--doesn't look very random at all. regards, Randy Kramer PS: Just for the record, if someone implemented a simplified approach which took a random number on each interval of 200 numbers in the original range, I would have to say that was the wrong approach (or, maybe more accurately, I would hope that I had specified the problem well enough so that such was not an acceptable approach). [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
[QUIZ] Sampling (#39)
Top