Dear forum readers !

I've had some unpleasant surprises recently using the well known %RANDOM% special environment variable, so my question is simple, yet the answer may not : is there any other random number generator I can use on Windows 8.1, such as the one used to generate SSL session keys, or RSA keys ? Since cryptographic key unpredictability is a security concern, I guess the RNG behind key generation should be good enough, at last

Ideally, something as good (or better, heh) as the Linux command :
dd count=1 if=/dev/random | hd >random.txt

which generates a text file with a hex dump of one block (512 bytes) of random data.

If needed, never tried before, but I should be able to start using some powershell script.

Thanks for your help !