some repo cleanup
add randomHR algorithm