-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to predict a integer number with v8 z3 #3
Comments
I think I have to change something in xorShift128+ code.But I don't know what. |
There are a lot of floating point numbers that can result in whole number. Let's say you do Math.floor(Math.random() * 15) and the outcome is 14. There are dozens of floating point numbers that could have resulted in this. Hence you have to span a huge equation that needs solving. It is certainly possible but seems to be quite a bit more difficult. |
I got it to work |
I understand. Thanks for information! |
Well to be honest I am not even sure if it works at all |
Maybe. Honestly I tried lot of things. But it didn't work. |
Ok well it seems to work if there are around 25 entries and the multiplier is 2000. But it is really hard to tell when it has enough data to make a correct prediction. |
Ok after some more research. I can also let z3 tell me if there is a unique solution. |
when I'm putting 5 numbers from:
[2353, 2497, 2281, 2400, 2184, 2208, 2472, 2448, 2232, 2257, 2305, 2160, 2329, 2424, 2376][Math.floor(Math.random() * 15)]
And it gives me an empty answer.
But when I put there 5 numbers which I got with:
[2353, 2497, 2281, 2400, 2184, 2208, 2472, 2448, 2232, 2257, 2305, 2160, 2329, 2424, 2376][Math.floor(Math.random() * 15)]
It doesn't work.As I said it gives me empty answer. So my question is what I have to change to predict integer number (preferably with numbers which I get using [2353, 2497, 2281, 2400, 2184, 2208, 2472, 2448, 2232, 2257, 2305, 2160, 2329, 2424, 2376][Math.floor(Math.random() * 15)])
The text was updated successfully, but these errors were encountered: