UoMResearchIT / programming_with_python

Intermediate Python programming course
https://uomresearchit.github.io/programming_with_python/
Other
1 stars 0 forks source link

New method of numpy RNG? #15

Open SJaffa opened 5 days ago

SJaffa commented 5 days ago

https://github.com/UoMResearchIT/programming_with_python/blob/19edfb758c78c9614ae7a2406dfa581a473f47ac/_episodes/03-numpy_essential.md?plain=1#L212

Shopuld we replace with the new recommended method for RNG to teach the most up to date best practices?

SJaffa commented 5 days ago

Also it's a bit unclear what we are doing in this one line - we are generating a number of normally distributed random values, where the number of values is the same as the length of g and the mean is the value of that index of g? Might me best to generate the random numbers separately with mean zero, and then add them to g to make this clearer.