Question about modding weapons.

So how do the values work? I know that for fire rate it's 60/RPM but I don't understand the other values.
For example:
self.weapon.stats.spread = 17
self.weapon.stats.recoil = 20
How does this affect the default values of a gun? I want to know how these work instead of changing the value and restarting the game and checking all the time.
Replies
Instead of restarting the game, you can use ReLUA to reload all lua changes
https://modworkshop.net/mod/20842