Shopee Interview Question

Q: create a random generator with predefined probability