rand () for floats. How do I do rand() for floats? Obviously this won't work: Code: [View]. float a = (float)rand() % 5.2;.
確定! 回上一頁