Bulk confectionery

Bulk confectionery is a method of commercially dispensing multiple small units of confectionery, either in manufactured bags with a fixed number of units per container, or by the amount of mass placed in a bag. The former is typically used in vending machines, while the latter is more common in retailers that specialize in selling confectionery. Some shops allow the customer to mix multiple types of bulk confectionery in the same bag, then purchase the mixture based on the total weight.
In the United States, some of these confections are called penny candy and are sold by the piece in candy, soda fountain, and five and dime stores. In Britain, this type of candy is also referred to as pick 'n' mix or penny sweets. 
In Sweden, bulk confectionery ("Lösgodis") can be found in almost every store, picked by hand. It usually often costs about $7,8 - $10 per kg depending on quantity and where the store is located. 
Loose candy is typically sold at kiosks, grocery stores and candy stores in the way that the customer picks up whatever kind, and how much, of candy they want (typically with a scoop) into a bag by themselves. The price of the candy depends on its weight, and the weighing can be either done by the customer or the seller.
History.
Bulk confectionery (Swedish Lösgodis) originates back to the 1930s, when Swedish agriculture began to supply the country with refined sugar and therefore made bulk confectionery possible to start selling in smaller shops. In 1984, the Swedish National Food Agency ("Livsmedelsverket") approved that it could be sold in ordinary larger stores, given that the candy was separated from each other in small containers and also taken with a ladle, handle, or a smaller bucket.
Since then it has started to spread all around the world, mostly in Europe and Asia. Even some IKEA in North America has started to sell mostly Swedish varieties but also American classics in its stores.