Wednesday, October 25, 2017

Random Isn't Random

Many Random Number generators that are included with programming languages aren't really random at all. These often use Pseudo-Random Number Generators. This means that every output is predetermined by the computer, making it deterministic. When it is started, it generates tons of 'random' numbers, and when a value is needed, it just chooses the next number in the list. Seeds are also used in these pre-determined numbers, and each seed is a different pattern.

This can be seen in a test made using python on Trinket. Multiple tests showed the dots appearing in what seems like a non-formal pattern, but after awhile, it would only repeat the dots it had already been too, and the blank spaces would never be filled in. This can be seen with Unreal Engine 4 as well.


No comments:

Post a Comment