f2k is an api that provides random HN posts when requested. Fork here - https://github.com/avinoth/f2k