Analysis of Logistic Map for Pseudorandom Number Generation in Game Development

Chenxiao Zhou
2024-03-01
Abstract:Many popular video games use pseudorandom number generators to create randomly distributed locations for game objects as highly unpredictable as possible. Some scenarios like game competition also need reproducible randomness, namely the random results can be reproducible if given the same seed input. Existing random generation methods have limited choices for seed input. To address this limitation, this study analyzes a chaotic map called the Logistic Map for game development. After analyzing the properties of this chaotic map, I developed a pseudorandom sequence generation algorithm and a generation algorithm of random locations of game objects. Experiments on the game of Snake demonstrate that the Logistic Map is viable for game development. The reproducible randomness is also realized with the proposed algorithm.
Cryptography and Security
What problem does this paper attempt to address?
This paper discusses the use of the Logistic map in game development to generate pseudorandom numbers and solve the limited seed input and security issues of existing methods. The authors analyze the properties of the Logistic map, develop pseudorandom sequences and algorithms for generating random positions of game objects, and verify the feasibility and reproducibility of the Logistic map in game development through experiments in a snake game. Compared to the commonly used Mersenne Twister method, the Logistic map has theoretically infinite seed choices but uneven distribution, requiring further improvement.