How to Display Random Posts in WordPress?
Drag the widget to your desired location. You will find several configuration options. These enable you to define the title, title URL, add a custom CSS class or add custom HTML or text before or after the random posts. In the “Posts” section, you can choose the number of posts to show, which type of content, and so on.