The build relies on a 16-bit linear feedback shift register, or LFSR. built a Christmas decoration that does the latter, displaying the results on an attractive flashing ornament. There are a great variety of ways to build a random number generator, and similarly many ways to generate numbers that appear random, but in a pure mathematical sense generally aren’t.