If determining weapon type randomly, use the following tables:
All magic weapons add a minimum cost of 150 g.p. on to the typical price of the weapon and the cost noted in the magic item tables (ammunition adds 20 g.p. per piece).