Oct-20-2019, 06:50 PM
(Oct-20-2019, 06:47 PM)profeteus Wrote: damn, that worked awsome! for the counts = [0] part, how do i turn the awnser into % from this part?
Like I said, you divide each count by the total number of values. So
counts[3] / sum(counts)
is the % chance you will roll a three (1 in 216).
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures