MASM32 Downloads

rdrand edx

(double)rand() / (double)RAND_MAX

Does anyone knows what would be the best way to convert a random generated fromCode: [Select]rdrand edxto a real8 between 0 and 1?

rdrand edxpush edxfild dword ptr [esp]fmul FP4(4294967295.0)fstp SomeReal

r10Constant REAL10 2.3283064370807973754314699618685e-10

static double hRnd_FAST ( float n ){ /* return between 0 and 1 (but never 1) */ /* Constants from 'Numerical recipes in C' chapter 7.1 */ if( n != 0.0 ) iseed = ( ( 1664525 * iseed ) + 1013904223 ); return (double)iseed / (double)4294967296ULL;}

but where is 64 Bit Assembler?

rdrand rdx