I am working on a DPC+ BB game, and would like to seed the random number generator so I can reproduce the same ordered sequence of random numbers. If I set (seed) the standard 'rand' variable in a non-DPC+ kernel, the 'rand' call always return the same ordered random results as predicted. However, when seeding the 'rand16' variable I was unable to generate a predictable random sequence.
Now that I have moved to the DPC+ kernel, I have no idea how to seed its 32-bit rand value (or if it is even possible). I tried assigning rand to a seed value, but it doesn't appear to have any effect on the random sequence.
Does anyone know how to seed the DPC+ rand variable to generate a predictable random sequence?
If I can't seed the DPC+ rand value, is it somehow possible to use the standard 'rand' call in a DPC+ build (which does appear to work as expected)?
Any help would be appreciated.