esc_qwq's blog

By esc_qwq, history, 5 months ago, In English

How to make sure that the probability of both two operations are exactly $$$0.5$$$?

paulzrm can you explain it please, thanks a lot :)

  • Vote: I like it
  • -21
  • Vote: I do not like it

»
5 months ago, hide # |
 
Vote: I like it +18 Vote: I do not like it

I think the most simple one called rand%2 can bring such probability correctly.

»
5 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Very sorry for the stupid question.