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] Housie (#114)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="rretzbach, post: 4549714"] I wanted to participate to a ruby quiz again - took a 40 quizzes break. But I can't get a perfect algo for creating a Book. This is probably a spoiler, maybe not <SPOILER> One Idea was to create each ticket, by building 2 rows and complete the last row: if both elements of the column were nil, mark the third element as "to be filled" and so on. But by doing this, I would actually change the probabilities, because the last row depends on the first two rows. So far the only perfect "algo" that came to my mind was to create all possible books and chose one randomly. By this method the chances are perfectly balanged. I mean we're talking about BINGO! It's about money... and you should be able to proof that your algo generates all possible books at equal probability. </SPOILER> Am I right with that, or is this totally nonsense? Either way, please feedback to me :> [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
[QUIZ] Housie (#114)
Top