If anyone has ever tried some type of random gun generation before (or if you just have some ideas), advice would be appreciated.
I have never done anything with random gun or weapon generation, but I do have a few things I will point out that come into mind for me when I think about how I would do it.
First I don't know if you are planning for it to randomly generate a sprite for each gun, but for that what I would recommend doing would be to draw up quite a few different parts of guns (maybe three per gun?) and then what I would do it each time it generates a new gun it will pic three of those sprites and put them together to make a new gun. You are going to need a lot of these if you want it to have lots of combinations for them to almost always be unique.
Above you can see I quick drew up 6 gun sprites and made 12 guns from them. So you can quickly come up with a low of different gun combinations, and the more sprite parts you make the more guns and so on.
Next what I would do is have it randomly pick one of a bunch of different bullet sprites, you can also put color overlays on them and glow effects to make the same bullet different just by color and effect.
After that you can pick a sound effect. Can have a wide range of sounds that it picks.
Once those are done the script could pick the amount of screen shake based on what bullet sprite it picks, the gun combination, and the sound effects. This will help add effect and make the weapon seem more powerful.
Finally finish up with its stats, pick how much damage it deals, accuracy, how far the bullet goes, speed, ammo, and the name of the weapon. For the name you can do something simple like put in a bunch of word. Then have it first pick how many words the name of the gun is (1,2,3,4) Then is picks something like 3 words and that's the name of the gun.
Hope this is clean and helps you, let me know if you need me to explain something better.