Quote from LapisLazuli;1293507:
Hi. Could I see the machine code for the client's rand() function? Thank you.
No. The code would be very hard to obtain, very lengthy, and we probably couldn't post it here without getting yelled at.
You could probably grab an old client that is not protected/virrualized (pre version 100) and disassemble that. Since you want to see the x86, I assume you know how to disassemble. Blade3575 should have old clients; you can find him on mabimods.
However, before you go through all that, I can tell you that the client uses the mersenne twister for most of its rng needs, so the rand function is almost certainly a call to the twister. You can find implentations of the twister all over the internet, in a variety of languages. Maybe that's enough for you?
Why do you want the code for rand anyway? I believe the only notable thing it affects is pet AI, which you have full control over anyway. "Important" numbers like damage and drops are calculated serverside, and thus unaffected by the client's rand function.