I think all you need to do is generate a random array that will remap each key press, rather than changing the sample map itself