coding a weighted coin toss of 90/10 percent probability

Anyone know how to code a weighted coin toss of 90/10 percent probablity instead of 50/50

Answer this question

coding a weighted coin toss of 90/10 percent probability

  • delaysteam

    Thanks. Does this ensure a truly random number each time I've been reading about psuedo-random numbers - http://support.microsoft.com/default.aspx scid=kb;en-us;231847.

  • garry_gill

    thanks for the responses, Christian.
  • Saikalyan

    I don't know how the pseudo random number generation works in .NET ( that's VB6 you're reading about ), but it will be something along these lines.  Doing stuff at 'random' is not something computers are capable of.



  • am09qx30

    Well, the obvious way would be to generate a random number between one and ten, and check if it's >9 instead of if it's >5 to decide which way to go. 

  • coding a weighted coin toss of 90/10 percent probability