Fix conditional

I found another conditional that use random. And I passed the mouse position to the new particle based on the other examples.