Completely understood. Perhaps that is what my teacher wants, but the wording suggests otherwise. The class is nearly done, and I don't think he would be asking something as simple as formatting a double.
Since the function doesn't print it, I think he wants us to generate a random double (don't know how to do that) and somehow manipulate it so that it only randomizes for a certain amount of places past the decimal. If that is even possible.
Ugh, does that even make sense? Maybe his wording is off? He always words things poorly.
Read the question again, he says nothing about printing it.
Thanks for the help, either way.