Fix -datapattern random regression

All of the datapatterns were broken and this commit fixes them.
Fixes #43.