Re: Generating Random Numbers

2017-06-27 Thread Arnaud de Montard via 4D_Tech
> Le 26 juin 2017 à 20:46, Jim Medlen via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > I think that my method was based on your original tech note > http://kb.4d.com/assetid=76055 It's based on Random, same problem of distribution… > I found the PHP command mt_rand which generates a random

Re: Generating Random Numbers

2017-06-27 Thread Chip Scheide via 4D_Tech
I ran into a problem with the PHP execute code, it was throwing an error, I do not know exactly why, and of course I can't get it to repeat now to capture the error message... Also it was a bit slower. replacing (for capital letters) Char(Random%($CapEnd-$CapStart+1))+$CapStart) -- (656 seconds

Re: Generating Random Numbers

2017-06-27 Thread Chip Scheide via 4D_Tech
Below are some links to sites which show statistics on various password frequency, some based on hacked password systems. A summary on passwords - from where I do not remember - We have succeeded in enfacing passwords which are difficult for us humans to use/remeber, and easy for computers to

Re: Generating Random Numbers

2017-06-26 Thread Cannon Smith via 4D_Tech
I can’t agree more with what David has said about passwords. Here is another article about it including a comic that I like: -- Cannon.Smith Synergy Farm Solutions Inc. Hill Spring, AB Canada 403-626-3236

Re: Generating Random Numbers

2017-06-26 Thread David Adams via 4D_Tech
On Tue, Jun 27, 2017 at 1:32 AM, Jim Medlen via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I concatenate 8 characters to build a ³random² > password which then has to meet a few simple rules. > contains a number > contains a lower case letter > No Double characters > Not 3 or more consecutive

Re: Generating Random Numbers

2017-06-26 Thread Jim Medlen via 4D_Tech
Tim, Thanks for the help. I think that my method was based on your original tech note http://kb.4d.com/assetid=76055 I found the PHP command mt_rand which generates a random number using Mersenne Twister. This function was recommended on several web pages regarding random number generators.

RE: Generating Random Numbers

2017-06-26 Thread Timothy Penner via 4D_Tech
> Is the 4D Random function considered a good random number generator ? It's OK, it produces a 15-bit random number between 1 and 32,767. If you need numbers above 32,767 you can use this: http://kb.4d.com/assetid=7 If the built in command doesn't meet your need then you can use PHP (like

RE: Generating Random Numbers

2017-06-26 Thread Dennis, Neil via 4D_Tech
Not considered a good random number generator when you are looking for random numbers. Add in milliseconds or seed it by looking for a random number (from millisecond or something) of random numbers and tossing them. I usually use something like this Random+Abs(Milliseconds) and they seem