KREMBO is a Windows driver which detours nt!RtlRandom (for no particular reason, just as a proof of concept). Its well commented and includes debug prints. I have successfully compiled it with Windows DDK 3790.1830. The zip includes in it, both the source code and an already compiled (in checked environment) driver.