I have this code to generate a random ID and it seems to work:
How do I write the result from the inline script to the logger? The result only prints on the prepare page, not the run page and when I run the code, the experiment goes straight to my "Welcome screen". My python inline script is before the Welcome Screen.
I also need to input the experiment code so can I code an input in the same inline script and output both the experiment code (which stays the same for each experiment) and the unique participant code.