Modify the application so that the Miner’s dialog is chosen from random depending on his state (GoHome, Sleep, or GoToMine) and whether the dialog is printed from the Enter, Execute or Exit method. Provide 3 different things for the Miner to say for each state and method combination (a total of 27 strings). You can use the existing strings as the first nine.
The changes should only affect the file StateMachineScript.lua file. Do not modify the C++ source code.
Add the following to the top of the Lua script file to seed the random number generator:
— seed the random number generator so we get different outputs
math.randomseed(os.time())
See attachments for more information and all required items.
