a = 60%
b = 30%
c = 10%
Pick_Something()
var/a = 0
var/b = 0
var/c = 0
var/ap = 60
var/bp = 30
var/cp = 10
if (prob(ap))
a++;
// Now what?
var/total = a + b + c;
world << "a%=[round(a/total * 100)]%"
world << "b%=[round(b/total * 100)]%"
world << "c%=[round(c/total * 100)]%"
ts
From what I understood, this should be what you want(its simple math tho, so I dont think this was the problem).
Here is the code anyway