Jump to content
  • 0

Make rand equal chance?


Question

Posted

Hey guys,

 

I'm using the 'rand' command to generate random server broadcasts. The problem is, I've noticed that the order in which I place the rand statements determines which broadcast has the highest chance of displaying. So, the very first rand statement that leads to a broadcast plays 90% of the time because it has the highest chance. Is there any way to make the outcome of multiple rand statements all the same chance? Thanks.

4 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...