Random Number Generation

Created 2022-11-08

Tetris RNG

Uses a 16-bit Fibonacci linear feedback shift register (LFSR):

XOR bits 1 and 9, store in bit 16, shift register right

XOR:

Wikipedia article

This has a period of 65535, which is maximal. It looks like a good algorithm

Linear-feedback shift register, Wikipedia