off-by-one error with length
fixed an off-by-one error with length, added test for length equality with random seed
tests now passing - pulled a schroedinger and gave up on determinism - need to rewrite ways of reproducing results though...