func GetResult() string {
data := map[string]float64{}
data["富"] = 33.00
data["强"] = 30.00
data["中"] = 15.00
data["国"] = 7.00
data["振"] = 6.00
data["兴"] = 5.00
data["实"] = 3.99
data["体"] = 0.01
var leng = 100.00//默认都是100即为100%
for c, i := range data {
for s := 0; s < 100; s++ {
rand.Intn(10)
resul:=100*rand.Float64()
random := cast.ToFloat64(resul)
if random < i {
return c
} else {
leng -= i
}
}
}
return "错误"
}