How to make percentage based spawning system

thank you i will probably do it in c++ when i get time because im busy these days