I'm trying to get a random integer within a range by reading from crypto.randomBytes().
Now, my problem is that I do not know how to read integers from that byte stream. I imagine generating a range is simply a matter of 'throwing away' the ints not in range.
Any ideas?