I found the GitHub repo too although I am a little embarrassed by the code now
https://github.com/prashantsengar/randraw