gumshoe2029
Thanks for the reply. The CB Hash plugin is pretty close from what I am looking for. But if I understand this plugin correctly (which I may not) it doesn't seem to me that it generates random strings. As you state yourself, it uses a seed and generate a character string based on it, right?
So if I use random (1000000) as a seed, well... It does the same job as just using random(1000000) as the unique code in my case. I don't necesarilly need to have that code scripted.
But anyway, thanks for pointing out the CBHash plugin to me. I installed it and it will be useful someday for sure. <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">
EDIT :
If anyone else need to do this, here is what I did :
On start of layout
repeat 30 times --> text > append keyboard.stringfromkeycode(floor(random(42)+48))
set sessionID to text.text
And now I've got my text variable sessionID with a unique 30 character string composed of any random character chosen from numbers from 0 to 9, letters from A to Z and a bunch of special characters.
If you need more information about keyboard.stringfromkeycode and stuff, you should look at this excellent tutorial by Waltan :
https://www.scirra.com/tutorials/739/your-own-textbox