Posts by Yasmin • 1 point
1 post
-
-3
votes1
answer135
viewsQ: How to generate a Boolean (0|1) randomly given the probability of the truth event in C?
I am trying to create a function for a larger problem, and only the function has the following description: returns a non-null integer with probability f, and returns 0 with probability 1 f, where 0…