Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jevinskie
· 13y ago · 0 comments
You can use a LFSR[0] to efficiently (it is deterministic, minimal state) convert a sequential power of two range [0, 2^n-1] into one that appears to "randomly" walk around.
[0]:
http://en.wikipedia.org/wiki/Linear_feedback_shift_register
Comments
[–]
tonyedgecombe
13y ago
Or just reverse the bits in the address.
[–]
mrab
13y ago
Yeah, I could think of a handful of ways to do this easily without as much resources as stated...