I have written a program with a function to generate random numbers and another function to display the die face that corresponds with the random number. My instructor told me that an alternate way to write the function that displays the die face is to use a template. We have not studied templates and I have not been entirely successful in studying templates online. Basically I want to find out how to convert the display die function into a function with templates. If I can figure out how to make these into templates than maybe I can then figure out how to display these dice side by side.
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;