I'm trying to create a random float between 0.15 and 0.3 in Objective-C. The following code always returns 1: int randn = (random() % 15)+15; float pscale ...
確定! 回上一頁