Help with converting inline python to java
I found an AX-CPT programmed in python but I want to rubn it in OSWEB.
There is a small amount of code in python. Essentially, the experiement presents has a pool of letters (distractors) which are randomly allocated to randomised items that are presented in the experiment (i.e. 'letter1' , 'letter2', 'letter3', 'letter4' and 'dist1' dist2' and 'dist3'.
The first inline script shuffles the pool of letters
The the seond inline script alocates the shuffled list to the letters and destractors used in the experiemnt
At the end of the trial sequence, the list is reshuffled and letters and distractors are reassigned.
Could anyone help convert to JAVA?