I am a bit new to R (I've used Stata before), but I am trying to figure out how to do a simulation in which I want dichotomous random variables whose expectation has a form like that of the distribution function of a logistic random variable.

So far, I've decided to use runif, and I want to use an indicator o show if a uniform is less than the expectation in order to simulate the dichotomous variables.

so far:

set.seed(12345)

runif (1000)

at this point, what should I do? I've generated 1000 "pseudo-random" numbers.. how would I go about with the second step?