I'm not sure I understand your question. Are you asking the probability of certain patterns of characters occurring? Or, are you asking how to compare the selected characters?
mzimmers
Junior Poster in Training
81 posts since Oct 2011
Reputation Points: 10
Solved Threads: 8
if (r == s && s == d) {
//winner!
}
You may want to put in another test to see if r == '$' (I assume that's what you want to pay on).
mzimmers
Junior Poster in Training
81 posts since Oct 2011
Reputation Points: 10
Solved Threads: 8