'Randomly set point on model's surface (Not sphere)

I am creating a React project with React Three fiber to add a 3D model that the user can interact with. Following the documentation, I imported my model (GLB format) I configured my camera. Now I want to add random points on the surface of the model (like on this example => example )

Unfortunately, I cannot find the method to be applied in the Three Fiber documentation. Anyone can tell me how to do that ?

Thank you for your time !



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source