Adds randomization, including ability to anchor the last element

Issue #15