Hi,

I know that I can generate random uniform data by:

gen variable = uniform()

But now I want to generate a binary variable 0 or 1 and also let them be random uniform distributed, how can I do that?

I'll be really looking forward to your help. Thank you!