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

Call wandb.run.save() to save the current run. Retrieve the name using wandb.run.name.