The gallery shortcode or [better_gallery] is what is used to generate galleries on posts and pages.
It has many different options and a load of layout templates.
Here's a few explained.
[better_gallery template=single random=true ] This one’s nice and simple. It’s going to pull out a random single image. Super useful for homepages or maybe an about, contact or even an error page.
[better_gallery template=autoslideshow ] Another cracker for your homepage needs. This one’s is an automatic slideshow of every image you’ve added to the page. And you can throw in the random tag if your that way inclined.