Original Post
Hi there. I need to generate a single random bit. This will happen in a small, high-performance loop so I want to avoid using standard "good" PRNGs and their comparatively lengthy code. In fact I only need approximate randomness, a 60-70% bias is probably acceptable. Is there a single x86 instruction which I can inline which will load a variable with a approximately random value? Using, say, EIP will be too predictable, as would loading, say, the parity flag or the clock tick. Is there anything suitable?