Weapon generation is the process by which Starbound creates the wide variety of weaponry in the game. Weapons are procedurally generated, meaning that the statistical likelihood of finding the same weapon twice is close to zero, as each has multiple features that may vary.
 Ranged Weapons
 Melee Weapons
 Number of Weapons
There are millions of possible weapons in Starbound. The exact number is unknown but can be calculated from the number of stats per weapon and the number of possible variations for each stat. One quote states that there are over 500,000 different varieties of Rocket Launcher alone, and over 800,000 different Shotguns.
The rarity of a weapon determines which Weapon Mods may be included with the weapon. This table (incomplete) shows what the different Rarity values unlock:
|??||explosive shots, bouncing bullets, branching shots|
Each of these characteristic stats is calculated when a weapon is generated:
Damage represents the base amount of damage received by the target of a weapon.
 Rate of Fire
A weapon's Rate of Fire is how quickly it can be used in succession, also known as Cooldown. This is different from Reload Speed.
A weapon's Range is the distance from which it can strike an enemy.
The Cost to use a weapon represents the energy or ammunition consumed upon its use.
A derivative value based on a its stats, a weapon's Price is its monetary value when bought or sold.