Awesome version >= 3.5
This is a way to get a random and unique wallpaper for every tag (or rather the last selected tab, since multiple tags can be selected) in the awesome window manager. The wallpapers are selected randomly from a provided path (which should only contain suitable pictures) and the algorithm guarantees a unique wallpaper for every tag.
In the config file for awesome wm, which should be located at