Another thing I'm working on: is trying to get true random

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

Another thing I'm working on: is trying to get true random

Post by shawnblc » Mon Jun 23, 2014 4:11 am

Since random isn't truly random. I'm thinking of trying to implement something like the following. I'd like opinions on it and how I'd do it (not necessarily code), but what to look for and where to find it. Remember you're still talking to a noob. :)

Put a field: fldPickAnyNumber (pick a number between 1-99999999999)

Code: Select all

set the randomSeem to fld "fldPickAnyNumber"
put random line into fld "fldImMoreRandom
"

Opinions?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Another thing I'm working on: is trying to get true rand

Post by Simon » Mon Jun 23, 2014 4:38 am

Look-up uuid.
I think it's 100 years at a million a day before you get to a .01 chance of repeating it.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

Re: Another thing I'm working on: is trying to get true rand

Post by shawnblc » Mon Jun 23, 2014 4:54 am

Simon wrote:Look-up uuid.
I think it's 100 years at a million a day before you get to a .01 chance of repeating it.
It's implemented now?

EDIT: sure is. :)

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10053
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Another thing I'm working on: is trying to get true rand

Post by FourthWorld » Mon Jun 23, 2014 5:07 am

I think I missed something: what changed, and in which version?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Another thing I'm working on: is trying to get true rand

Post by Simon » Mon Jun 23, 2014 6:28 am

Hi Richard,
I thought it came in around 6.5.
Am I wrong in it's uniqueness?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Another thing I'm working on: is trying to get true rand

Post by [-hh] » Mon Jun 23, 2014 8:31 am

..........
Last edited by [-hh] on Wed Aug 13, 2014 2:13 pm, edited 2 times in total.
shiftLock happens

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Another thing I'm working on: is trying to get true rand

Post by Simon » Mon Jun 23, 2014 8:41 am

Hi -hh,
I think this is where religion came from.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply