iterating shuffled [0..n) but arrays
i know integrate routines work follows:
xn+1 = routine(xn, max)
for example, something lcg generator:
xn+1 = (a*xn + c) mod m
there isn't adequate parameterization generator beget each sequence.
dream function:
xn+1 = routine(xn, max, unfamiliarity number)
this routine, parameterized an index set permutations, relapse unbroken array sequence. method competence arbitrarily infinite (so storing array controlling factoradic numbers impractical.
failing that, does anyone have pointers identical functions presumably stateless have consistent volume state erratic 'max', such iterate shuffled list.
Comments
Post a Comment