In Google Apps Script, you can generate random numbers using the Math.random() function, similar to JavaScript.
Math.random()
Google Apps Script, being a JavaScript-based language, offers standard methods to round numbers.
Google Apps Script does not have built-in support for complex numbers, necessitating the implementation of custom functionality.