Re: Generating Random numbers to conform a distribution

2022-06-07 Thread Mark Waddingham via use-livecode
On 2022-06-07 21:51, David V Glasgow via use-livecode wrote: Quite a lot of stats and maths packages offer a feature whereby the N, the Mean and the SD are variables specified by the user, and N random numbers are then generated with the required mean and SD. I remember the venerable and excelle

Re: Generating Random numbers to conform a distribution

2022-06-07 Thread Richard Gaskin via use-livecode
Rick Harrison wrote: > Try rolling 2 six-sided dice. 7 is the number that appears the > most so it’s at the middle of the curve, while 2 and 12 are at > the ends of the distribution. Roll the dice multiple times to > generate a distribution. > > Now simulate rolling the dice with random numbers

Re: Generating Random numbers to conform a distribution

2022-06-07 Thread Richard Gaskin via use-livecode
David V Glasgow wrote: > Quite a lot of stats and maths packages offer a feature whereby the N, > the Mean and the SD are variables specified by the user, and N random > numbers are then generated with the required mean and SD. I remember > the venerable and excellent Hypercard HyperStat >

Re: Generating Random numbers to conform a distribution

2022-06-07 Thread Rick Harrison via use-livecode
Try rolling 2 six-sided dice. 7 is the number that appears the most so it’s at the middle of the curve, while 2 and 12 are at the ends of the distribution. Roll the dice multiple times to generate a distribution. Now simulate rolling the dice with random numbers in LC the same way. Now conduct

Re: Generating Random numbers to conform a distribution

2022-06-07 Thread Mark Wieder via use-livecode
On 6/7/22 20:24, J. Landman Gay via use-livecode wrote: I don't have an answer. But apparently it's a common problem: https://xkcd.com/2626/ Chortle. Back in the day I would generate a random number by back-biasing a germanium diode and hook it up to an analog-to-digital converter. Great wh

Re: Generating Random numbers to conform a distribution

2022-06-07 Thread J. Landman Gay via use-livecode
I don't have an answer. But apparently it's a common problem: https://xkcd.com/2626/ -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On June 7, 2022 3:53:37 PM David V Glasgow via use-livecode wrote: Quite a lot of stats and maths pack

Re: Case sensitivity in Livecode ??

2022-06-07 Thread Mark Wieder via use-livecode
On 6/7/22 17:55, Alex Tweedly via use-livecode wrote: So you cannot put "constant k = 17" in an included file (outside of a handler) and have it take effect anywhere except within the included file !?! Ah. I see I must be projecting my desired expansion of the "include" command onto what I e

Re: Case sensitivity in Livecode ??

2022-06-07 Thread Mark Wieder via use-livecode
On 6/7/22 10:55, Mark Waddingham via use-livecode wrote: I don't buy the 'cognitively different' argument Mark- Thanks for the longish explanations there. I think we'll just have to disagree on the cognitive thing then - I normally would expect functions to return the result of some action,

Re: char as word boundary

2022-06-07 Thread Neville Smythe via use-livecode
Still jumping without thinking… If native char 202 or unicode char 202 is a word boundary in Windows it is a real bug — but is that the case? Native char 202, a non-breaking space, should (or maybe shouldn’t) be a word boundary in Mac - the docs say word boundaries are space, tab and return. W

Re: char as word boundary

2022-06-07 Thread Neville Smythe via use-livecode
Hmm. I jumped without thinking…I was thinking if unicode char 2029 which is the paragraph separator. Unicode Char 202 is supposed to be Latin Capital Letter E With Circumflex. But 202 is beyond the standard ascii range so the deprecated numtochar(202) will return an extended ascii character dep

Re: Case sensitivity in Livecode ??

2022-06-07 Thread Alex Tweedly via use-livecode
{ Aside: any discussion where both Mark Weider and Mark Waddingham take part is all the better because of that; two very knowledgeable people with two very different viewpoints (in some areas) is a good thing. BUT it makes it hard to refer to what each of them said - "MarkW" is still ambiguous.

Generating Random numbers to conform a distribution

2022-06-07 Thread David V Glasgow via use-livecode
Quite a lot of stats and maths packages offer a feature whereby the N, the Mean and the SD are variables specified by the user, and N random numbers are then generated with the required mean and SD. I remember the venerable and excellent Hypercard HyperStat

Re: Case sensitivity in Livecode ??

2022-06-07 Thread Mark Waddingham via use-livecode
On 2022-06-07 17:16, Mark Wieder via use-livecode wrote: 1. Because it's a function, not a constant. put gkMyMagicValue() into tVar is cognitively different from put gkMyMagicValue into tVar Something like 17 is a trivial case. Something more like real world usage would be constant kRootURL

Re: Case sensitivity in Livecode ??

2022-06-07 Thread Mark Wieder via use-livecode
On 6/7/22 00:18, Mark Waddingham via use-livecode wrote: How is that any better than putting something like this in a library or back script:     function gkMyMagicValue     return 17     end gkMyMagicValue Including the global declaration its the same number of lines (indeed less, as

Re: Case sensitivity in Livecode ??

2022-06-07 Thread Bob Sneidar via use-livecode
I thought we already had global constants?? I think they are called, "Literals." ;-) Bob S > On Jun 7, 2022, at 24:18 , Mark Waddingham via use-livecode > wrote: > > On 2022-06-01 19:54, Alex Tweedly via use-livecode wrote: >>> Also, you'll be able to do things like: >>> constant kPiBy2

Re: use-livecode Digest, Vol 225, Issue 4

2022-06-07 Thread Craig Newman via use-livecode
Though it is true that “numToChar” and “charToNum” are deprecated, they still live and work the same as always. Old habits die hard, andI still use them. One day I will move on., but the original issue has not changed. Craig > On Jun 7, 2022, at 9:01 AM, Jean-Jacques Wagner via use-livecode

Re: use-livecode Digest, Vol 225, Issue 4

2022-06-07 Thread Jean-Jacques Wagner via use-livecode
Hi Sorry, I ment the number of words. Since numtochar has been depreciated with version 7.0, the closest would be now numtonativechar. However with numtonativechar () for the words boundaries the following chars number “09,10,11,12,13,32,202” are used. Therefore a feature has been depreciate

Re: Limit on the number of parameters?

2022-06-07 Thread Craig Newman via use-livecode
I have never had any issues with the number of parameters that can be passed to a custom handler. Nor any issue with “seeing” them all in the debugger. I would say that the largest number of params I ever sent was about 15. Craig > On Jun 6, 2022, at 4:08 PM, Bob Sneidar via use-livecode >

Re: MacOS on M1: forcing universal app to open using rosetta from terminal?

2022-06-07 Thread Ben Rubinstein via use-livecode
Thanks Matthias, that's exactly what I need. My googling was inadequate! Ben On 06/06/2022 23:13, matthias rebbe via use-livecode wrote: Maybe this is of help for you. https://medium.com/swlh/run-x86-terminal-apps-like-homebrew-on-your-new-m1-mac-73bdc9b0f343

Re: Case sensitivity in Livecode ??

2022-06-07 Thread Mark Waddingham via use-livecode
On 2022-06-01 19:54, Alex Tweedly via use-livecode wrote: Also, you'll be able to do things like:     constant kPiBy2 = pi / 2     constant kPiBy2Squared = kPiBy2 * kPiBy2     constant kPiBy2String = format("%f", kPiBy2)     local sPiMap = { "pi-by-2": kPiBy2, "pi-by-2-sq": kPiBy2Squared } Ver