The railgun works by using extremely high electrical currents to generate magnetic fields capable of accelerating a projectile to speeds of up to Mach 6, more than twice as fast as existing projectiles. The railgun has a range of more than 100 miles.