Help with Custom Command

I want to make a custom command that anyone in chat can use. The command will be !weapon and I want the response to be out of 5 weapon choices, so those choices would be War Pike, Sword, Axe, Hammer, Chain Blades. I want it to be when !weapon is used it reply’s with “War Pike” or “Axe” , (minus the quotations) how would I do this?

figured it out $(user) $(eval a=[“Sword”, “Axe”, “War Pike”, “Hammer”, “Chain Blades”];a[Math.floor(Math.random() *a.length)]) does exactly that