mercredi 14 décembre 2022

Is there a way to replicate np.random.rand() python function from C?

I want to get random numbers in C sampled in the same way that np.random.rand() does ... the problem is that with rand()/srand() C functions I am not getting good results (random numbers from rand() C function seem to have some pattern). Which is the best solution? call np.random.rand() from C ?

thanks




Aucun commentaire:

Enregistrer un commentaire