Interestingly, that does not work on my machine for numpy, and uses multiple cores and changes 
I guess some BLAS libraries might not be following this.
You can try running different ops in the while loop. Just the random numbers vs only the dot for example.