The Hagelslag texture node produces a random candy sprinkle texture (figure 1).
Figure 1: The Hagelslag node applied to a scene object
Figure 2: The Hagelslag node and it's associated parameters
Density
Determines the number of sprinkles added to the texture map.
Random Seed
Changes the sprinkle pattern across a surface.
Sprinkle Radius
Determines the thickness of the sprinkle shapes.
Sprinkle Length
Determines the length of the sprinkle shapes.
Mask Texture
Sets the color of the sprinkle shapes.
Transform
Positions, scales, and rotates the surface texture.
Projection
Sets how the texture projects onto the surface.