Generating Random Number from inside Kernel

Just use the one in GPUArrays, it should work perfectly fine with CLArrays && CuArrays!

Here is an example of how you can use it:

I should have a look if we can integrate xorshift as well… Looks a bit simpler then what I ported!

1 Like