5 ms·
I don't understand why you would need many calls to random. Are there any obvious reasons it wouldn't suffice to get one random number and then reuse it through
by yxhuvud 13y ago
I don't understand why you would need many calls to random. Are there any obvious reasons it wouldn't suffice to get one random number and then reuse it throughout the stream?
- tantalor 13y agoLooks like that doesn't work, https://gist.github.com/tantalor/5911137 https://gist.github.com/tantalor/5911137 The distribution ends up weighted towards the front with a spike at the end. Looks like this: https://docs.google.com/spreadsheet/oimg?key=0AhzL62E3zw7-dGhpemVRcE1zVlhoVnBpbDNjS2NKclE&oid=1&zx=tj3bijabnb4f https://docs.google.com/spreadsheet/oimg?key=0AhzL62E3zw7-dG...