How to get courses in 3 columns

Hi how can one apply columns to courses on the courses page just like on the user page, when logged in. On that page 3 random courses appear and in the php you can set number to 6, 12 or even more.

I want to use this for a custom homepage were courses are shown immediately on enter the homepage.

Thanks for helping out!