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

Popular posts from this blog

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?

grails record upload problems

how i emanate permitted url asp.net mvc?