News for hackers. Stuff that matters.
Re:A New Algorithm for Controlled Randomness by XCSme on Sunday September 01, 2019 @07:15AM (#20851646)
Are you talking about randomly shuffling the bits or getting a new permutation? Any suggestions on how to quickly randomly shuffle the bits of a number?
Re:A New Algorithm for Controlled Randomness by richard_todd on Sunday September 01, 2019 @10:26AM (#20852449)
Randomly shuffling the bits _is_ a new permutation (of those bits). There may be a faster way to shuffle the bits of whole bytes/words on some architectures, but for the general case I suspect a normal shuffling algorithm (like Fisher-Yates) and shifts+and+xor swapping is best.
Re:A New Algorithm for Controlled Randomness by XCSme on Sunday September 01, 2019 @01:40PM (#20853514)
Oh, sorry for not making it clear, when I meant permutation I was referring to the the immediately next permutation. I guess after current set is over you could also take the Xth permutation of the current state, where X is a random integer. (so you randomly skip some permutations to not make it predictable).
Re:A New Algorithm for Controlled Randomness by richard_todd on Sunday September 01, 2019 @07:05PM (#20855584)
Yeah jumping ahead by X permutations would be good as well.