I want to know how one can change the sign of variable each time randomly

Rephrasing doesn’t help. It is not the question that is the problem, it is the lack of detail and demonstration of what you have already tried and what failed how that is missing. This is not resolved by just asking the same thing differently.

There is an even bigger challenge: you don’t seem to grasp how getting help in an online forum works. Just announcing that you have “challenges” is not sufficient. Without demonstrating what you have already done, i.e. providing a small demonstration example (best constructed off one of the (simple) LAMMPS examples) and explaining how you can tell that what you did had not the expected effect, you are giving off the impression that you expect others to do what is essentially your task and without making it as easy as possible to assist you; on the contrary.

Second, you need to do some research on your own. If you look through the available text book material and online resources, you should have found that: a) LAMMPS does not intrinsically generate a Poisson distribution and b) there are ways to create all kinds of random number distributions from a uniform distribution (which LAMMPS does provide). Now, if you have problems with the “mechanical” implementation of this, you may well ask here, but - as before - proper forum etiquette expects you do give it a first try and check it and show it to us and then explain how what you implemented does not fit your needs.

For more explanations on how you can make the best out of a forum in which people that are responding are volunteering their time you should have a good read through the forum guidelines and suggestions.