Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
只需要一种快速的方法来在 GPU 上生成介于 -1 和 1 之间的伪随机数。
我一直在研究 xorshift 随机数生成器,但我不知道如何将它们限制在两个数字之间。