I have a coin similar to those shown but in silver. In Central America we call them "macacos". An old coin's expert in New Orleans told me that mine was from the Potosi mine in Mexico and that the irregular shape is because they were rolled out (like cookie dough) then cut. thus distorting the sides.
The silver ones are rather common here, but I haven't seen a gold one.