Bria P.

asked • 12/04/15

How do I display the a string a random amount of time and print it out?

I am writing the Nim game program and my teacher wants me to be able to display "Pile 1: @@@@" and other piles as well. The thing is that, the "@" symbol needs to be produced a random amount of times. I have no clue how to do this. Printing strings I'm fine at. I figure if I make the @ a String and print that a random amount times I can do that, its just the random part that's screwing me up.

1 Expert Answer

By:

Jonathan F. answered • 12/22/15

Tutor
4.9 (400)

Expert Programmer Specializing in C++ and Java

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.