comment on

 Need Help??

As has been suggested already++, rand is as good a starting point as any for guessing a random number. You could probably try a best-fit polynomial, though it's doubtful it would perform any better at guessing the next random number than rand() would. It really depends on how random it is.

In the 90s, I would have said, "make an artificial neural network", and I guess nowadays, I would say the equivalent "machine learning"... but given that no one has broken the stock market with their hugely-above-average performing ANN/ML/AI systems, I doubt that'd have a much higher success rate than rand().

If it's a computer-generated random number (PRNG) to begin with, you could try to reverse engineer whatever PRNG is being used to by the "roulette" wheel, but with all the various manipulate-and-mod methods, with their huge numbers of possible state values, make that a daunting perspective. (If you know which implementation of their rand() function, you'd have a better chance of brute-forcing the state, especially if it's a smaller number of bits in their algorithm.)

If it's something more truly random (ie, a non-rigged physical process), then all bets are off, and rand() is as good as you're likely to get. If it is rigged, then you've got a better chance, and doing best fits, or other statisitical analysis, would be a good starting point.

Oh, I seee that Happy-the-monk mentioned rigged roulette wheels while I was writing this up, and hdb suggested some statistical packages to use to analyze data. That makes my post all-but-superfluous, but it will still be posted due to sunk costs. :-)

In reply to Re^2: guessing next number on roulette wheel by pryrt
in thread guessing next number on roulette wheel by sk.kumar

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

• Are you posting in the right place? Check out Where do I post X? to know for sure.
• Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
• Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
• Want more info? How to link or or How to display code and escape characters are good places to start.

Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2022-08-09 01:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?

No recent polls found

Notices?