# Image Viewer - Random Image on command

**URL:** <https://resource.dopus.com/t/image-viewer-random-image-on-command/35497>\
**Category:** Help & Support\
**Created:** [May 10, 2020, 8:42pm UTC](https://resource.dopus.com/t/image-viewer-random-image-on-command/35497 "2020-05-10T20:42:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [May 10, 2020, 9:08pm UTC](https://resource.dopus.com/t/image-viewer-random-image-on-command/35497/2 "2020-05-10T21:08:37Z")

</div>

You could do it using a script that selects a random file and opens it in the viewer pretty easily.

Or you could use one of the existing scripts which randomises the file order or selects a random file and then push return to open it:

> [@Button: Random Shuffle](https://resource.dopus.com/t/button-random-shuffle/23261):
>
> Requires Directory Opus 12 or above. Overview: This script-button shuffles the files and folders in the tab into a random order each time you click it. Files and folders are mixed together. Right-clicking the button resets things back to normal. Y…

> [@Command: SelectRandom (randomly select files/folders)](https://resource.dopus.com/t/command-selectrandom-randomly-select-files-folders/19289):
>
> SelectRandom - a script command which allows you to randomly select items by type, count, size, total-size or some other filters. Results can be selected, dumped to console, copied to file collections or returned in env/tab-variables. "SelectRandom…

---

_[View the full topic](https://resource.dopus.com/t/image-viewer-random-image-on-command/35497)._
