Page 2 of 2

Re: How to strip characters out of uuid to use as a random s

Posted: Tue Jun 24, 2014 5:48 am
by FourthWorld
shawnblc wrote:
FourthWorld wrote: What problems did you encounter with the default randomseed?
When using randsomseed, closing the program & removing from memory, then restarting the stack I'd get the same repeated line using randomseed or using any line. Both on OSX 10.93 and Windows 7 (vmware). Anytime my stack is called I'd like it truly random. Not a repeat of the same sequence.
Do you get a better result if you just leave the randomSeed alone?

Re: How to strip characters out of uuid to use as a random s

Posted: Tue Jun 24, 2014 9:50 am
by shawnblc
FourthWorld wrote:
shawnblc wrote:
FourthWorld wrote: What problems did you encounter with the default randomseed?
When using randsomseed, closing the program & removing from memory, then restarting the stack I'd get the same repeated line using randomseed or using any line. Both on OSX 10.93 and Windows 7 (vmware). Anytime my stack is called I'd like it truly random. Not a repeat of the same sequence.
Do you get a better result if you just leave the randomSeed alone?
No. Wish I did.

Re: How to strip characters out of uuid to use as a random s

Posted: Tue Jun 24, 2014 8:24 pm
by FourthWorld
What problems are you seeing?

Re: How to strip characters out of uuid to use as a random s

Posted: Tue Jun 24, 2014 9:27 pm
by sefrojones
Hey Shawn,

I just tested "put any line" of a 10k line text document, and it seems to be pretty random. I close the stack and open it again, and I get a different set of results. Check this Super simple stack that references a 10,000 line txt doc on my google drive:

It seems to be working fine on my end.

It's just one button and one field, with this as the button script:

Code: Select all

on mouseUp
   put url "https://9f3842e07d8c6feae8cc3e01e8f91f10f3587794.googledrive.com/host/0B9myvEGzDKvCOWVEYlVoYUJpWms/myData.txt" into tText
   put any line of tText &cr after fld 1
end mouseUp

Re: How to strip characters out of uuid to use as a random s

Posted: Tue Jun 24, 2014 10:03 pm
by shawnblc
sefrojones wrote:Hey Shawn,

I just tested "put any line" of a 10k line text document, and it seems to be pretty random. I close the stack and open it again, and I get a different set of results. Check this Super simple stack that references a 10,000 line txt doc on my google drive:

It seems to be working fine on my end.

It's just one button and one field, with this as the button script:

Code: Select all

on mouseUp
   put url "https://9f3842e07d8c6feae8cc3e01e8f91f10f3587794.googledrive.com/host/0B9myvEGzDKvCOWVEYlVoYUJpWms/myData.txt" into tText
   put any line of tText &cr after fld 1
end mouseUp
So am I understanding correctly that put any line (LC) uses a randomseed automatically at launch, BUT you can specify a randomseed if you want? Definitely, seems to be working.

Re: How to strip characters out of uuid to use as a random s

Posted: Tue Jun 24, 2014 10:07 pm
by sefrojones
shawnblc wrote:
So am I understanding correctly that put any line (LC) uses a randomseed automatically at launch, BUT you can specify a randomseed if you want? Definitely, seems to be working.
I believe this is indeed the case.

Re: How to strip characters out of uuid to use as a random s

Posted: Tue Jun 24, 2014 10:10 pm
by shawnblc
sefrojones wrote:
shawnblc wrote:
So am I understanding correctly that put any line (LC) uses a randomseed automatically at launch, BUT you can specify a randomseed if you want? Definitely, seems to be working.
I believe this is indeed the case.

Thanks sefrojones. Very much appreciated.

I'm sure one of the veterans will chime in. That's what I gather too.