Create solutions for 4 equally likely outcomes to be selected using a random number.
Flow diagram | pseudocode |
c=a random number from 0 to 1 if (c >0.5) if (c > 0.75) Good and Good else Good and Bad else if (C > 0.25) Bad and Good else Bad and Bad |
|
|
c=a random number from 0 to 1 if (c >0.75) Good and Good if (c > 0.5 && c <=0.75) Good and Bad if (C > 0.25 && c <=0.5) Bad and Good if (c <=0.25) Bad and Bad |