Skip to main content
1 of 2
Yogesh Yadav
  • 213
  • 1
  • 2
  • 7

How do I generate maxwell-boltzmann variates using a uniform distribution random number generator?

I am doing a molecular dynamics simulation. I need to assign initial velocities to the atoms. I want to assign the initial velocities which follow the maxwell-boltzmann distribution. How do I calculate such initial velocities using a uniform random number generator with range [0,1).

Yogesh Yadav
  • 213
  • 1
  • 2
  • 7