How do I get the random run name in my script?

Call a run object’s .save() method to save the current run. Retrieve the name using the run object’s name attribute.