Do you get a better result if you just leave the randomSeed alone?shawnblc wrote: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.FourthWorld wrote: What problems did you encounter with the default randomseed?
How to strip characters out of uuid to use as a random seed
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 10053
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: How to strip characters out of uuid to use as a random s
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: How to strip characters out of uuid to use as a random s
No. Wish I did.FourthWorld wrote:Do you get a better result if you just leave the randomSeed alone?shawnblc wrote: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.FourthWorld wrote: What problems did you encounter with the default randomseed?
-
- VIP Livecode Opensource Backer
- Posts: 10053
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: How to strip characters out of uuid to use as a random s
What problems are you seeing?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 447
- Joined: Mon Jan 23, 2012 12:46 pm
Re: How to strip characters out of uuid to use as a random s
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:
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
- Attachments
-
- RandomLineTest.livecode.zip
- (667 Bytes) Downloaded 175 times
Re: How to strip characters out of uuid to use as a random s
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.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
- Attachments
-
- RandomLineTest-2.livecode.zip
- (1.12 KiB) Downloaded 169 times
-
- Livecode Opensource Backer
- Posts: 447
- Joined: Mon Jan 23, 2012 12:46 pm
Re: How to strip characters out of uuid to use as a random s
I believe this is indeed the case.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.
Re: How to strip characters out of uuid to use as a random s
sefrojones wrote:I believe this is indeed the case.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.
Thanks sefrojones. Very much appreciated.
I'm sure one of the veterans will chime in. That's what I gather too.