Trying to run r.random using the script but receiving an error message. It works when the module is run outside of the python shell so it must be te code, I'm new to this so I can't figure out what is wrong.
grass.run_command("r.random", overwrite=True, input="island",npoints=15, raster="randomsample", vector="randomsample")
Process ended with non-zero return code 1. See errors in the (error) output.