> Le 24 déc. 2019 à 23:59, Kirk Brooks via 4D_Tech <[email protected]> a > écrit : > > Who doesn't like an(other) discussion about random numbers?
Hi Kirk, I like ;-) If you need a fast random function, calling 'Random' 16 times at once may result in poor performances; but the main problem is the use of 'Random' itself, see here: <https://forums.4d.com/Post/FR/17717750/1/17717751#17717751> From the 2 graphs that look like growing grass, the upper one uses 'Random', the lower uses 'Generate uuid'. The 'Random' function returns a majority of small values, while using uuid gives a good distribution (the opposite would be unexpected and boring…). If you're interested, there's a link to a small test 4db at the bottom of the tread, it's quite easy to add another generator and try it. -- Arnaud de Montard ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

