Hallo,

I am trying to make my program take advantage of all the threads on my pc but im running into a strange problem. In the function used by the threads I do (float)rand() / (float)RAND_MAX and it gives the same result for every single thread.

Any ideas on how to solve this?