AlpacaHack Logo

Tag: Random Number Prediction

Sign InSign Up

Random Number Prediction

Related:
#PRNG
#Mersenne Twister

No description is available for this tag.

Updated Apr 24, 2026
Random Number Prediction Challenges
The future path
pppp4649

pppp4649

Crypto
94 solves
high and low
theoremoon

theoremoon

Crypto
91 solves
The past or the future?
pppp4649

pppp4649

Crypto
35 solves
janken vs yoshiking 2
theoremoon

theoremoon

Crypto
16 solves
SquareRNG
ptr-yudai

ptr-yudai

Crypto
15 solves
matsushima3
ptr-yudai

ptr-yudai

Cheat
1 solves
sharr
ptr-yudai

ptr-yudai

Pwn
0 solves

high and low

Daily AlpacaHackTopic: RNGReleased: Mar 7, 2026

91 solves
Crypto

by

theoremoon

theoremoon

guess the high or low!

Beginner Hint 1 (AI-translated)
  • server.py implements a custom RNG called RNG.
  • This RNG is a simplified version of Mersenne Twister, making it easier to predict.
  • The goal of this challenge is to predict this custom RNG and increase money until the flag is printed.
Beginner Hint 2 (AI-translated)
  • To predict the RNG, you need to reproduce the server's RNG state on your own machine.
  • The RNG state consists of state and p.
  • p is easy to predict because it is only incremented each time next_value is called.
  • So what about state?
  • Focus on the fact that x can be recovered from y.
server.py
descriptionsolveswriteups