Generating a random Number (0 or 1)

Try the Entropy Library from wanderson. If it does what he says it does, this little bit of software should solve your problem.