What are your favorite ways to approach this?
I think a maximal period linear feedback shift register might fit well.