(round((arc4random() % 2)))-((round((arc4random() % 2))) == 0)感覺方法太長了,求一個簡化的方案。
我需要獲取 (-1,1) 的隨機數,現在用的方法是:
幕布斯6054654
2023-04-25 19:15:25