Joined March 2018
·

isomorphismes

quant at humility
·
Kathmandu, Nepal
·
·
·

Posted to Random number generator in bash over 1 year ago

Just want to note that if you take $RANDOM % 10000 the result is no longer random, but biased to the front. Since the top is 32767 (maximum positive signed integer), up to 30000 it will be even but then the first 2767 options will get used a fourth time and the last 7233 will only get used three times. Destroying whatever randomness you had from /dev/urandom.

Posted to Ruby's yield & blocks over 1 year ago

Thanks for making this short.

Posted to 2-page view in Google Docs over 1 year ago

I used to be able to get a two-page view, I forget if this was with embedded=TRUE or not, by simply pressing the 2</code> key. No idea why they removed that functionality.

Achievements
1 Karma
0 Total ProTip Views
Interests & Skills