switched random number generator from srand to rdrand, verified on ASUS Chromebox with Haswell CPU