adding helper rand method
no warnings in build
graham scan