How to use random_string frappe utils function?

You can’t add the method in the system console.

Please check the documentation.

And also check the video.