The width is fixed at a set number of pixels for each image, while the height is scaled to keep image aspect ratio. Adjust width to change how many columns you get. Images are displayed in folder order by default.
The mosaic grid arrangement can be modified to determine where and what size each image is. This gallery has the order of the images randomized on page load.