Random check fn
Optimise