|
|
On 24/07/2015 06:00 PM, Orchid Win7 v1 wrote:
> On 24/07/2015 04:05 PM, scott wrote:
>> * One of the hardest bits is to get a random number generator running on
>> the GPU that is random enough to not show any patterns after a while.
>> There is still some subtle non-randomness visible, but it's way better
>> than it was originally. That's why there's random bits of code like
>> rng.x = sin(r1 - FrameNumber) in there. It seems to do the job.
>
> Ah yes - it's not like you can just run the Mersenne Twister on a GPU...
> ;-)
...actually, apparently you *can* run MT on a GPU. o_O
Trouble is, it's laughably slow.
Have you seen this? The accepted answer looks simplish...
http://math.stackexchange.com/questions/337782/pseudo-random-number-generation-on-the-gpu
Post a reply to this message
|
|