i mean, without writing a function by oneself .
Not unless you are using a VIA CPU. http://www.via.com.tw/en/initiatives/padlock/hardware.jsp#rng
No.
MASM32 includes a procedure to generate random numbers called nrand. There is also crt_rand from msvcrt.lib. nrand would probably be faster if that's a consideration.
With a macro you can get the assembler to generate random numbers at assembly time. There are two examples here:
http://www.masm32.com/board/index.php?topic=9018.0
not the best, but easy to implement:
rdtsc
and eax,0ffh ; 0...255
Or you can use another library... I would recommend Agner Fog's (http://www.agner.org/random/).
If you download the zip file of binary libraries, in that is another zip file with the source code (in asm).
Ossa