bool RetFunc() { if (rand() > 10) { return 10; } return 1; } void Demo() { //彿°æè¿åå¼ï¼å´æ²¡æå¤ç RetFunc(); }