Posts by Victor Martins • 11 points
2 posts
-
0
votes1
answer144
viewsQ: How to draw a draw for an element of an array within a specific range?
I have a Python code, where I have an array (g) of 10,000 elements. After performing a draw using Andom.Choice(g) that draws any of these 10000 elements. However, I would like my final value to be…
-
-1
votes1
answer68
viewsQ: How to perform a draw in python following a certain distribution, such as Gaussian or Maxwell-Boltzmann distributions?
My problem is to draw velocity values for a hydrogen molecule according to a Maxwell-Boltzmann distribution that will collide with an electron (with well-defined energy) and will split into two…