It's easy with MGs. You can only purchase a machinegun that was legally registered prior to May, 1986. You have to do federal paperwork to accomplish it along with paying a $200 transfer tax. The
cheapest legal machinegun you can currently buy are Mac-10/11's for around $3,000 each.
Here is a good place for infomation on the laws:
Bardwell's NFA FAQ .