Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!


Testing The Random Number Generator In Delphi Firemonkey On Windows And OSX

Delphi Firemonkey Random Number Generator Windows MacOSXDeveloper Mehmed Ali Caliskan from Turkey has a blog post up from a few years ago where he explores the Delphi random number generator. He built a cross platform test application in Firemonkey for Windows and Mac OSX which test the Delphi random number generator and also tests the same data against the API. He built this test application before Android support (and probably IOS support)¬†was available but you should be able to upgrade it to support Android and IOS if you want to test it out for yourself on those Firemonkey platforms. At the end of the article he concludes that Delphi’s random number generator is decent (not unnatural in it’s results), comparable to results, and passes his test. There are two graphs showing the random numbers from and the Delphi random function. At 100,000 tests you can see that the two graphs are very similar.

Head over and read the full blog post about the nature of randomness and testing the Delphi Firemonkey random number function.

Or head directly to Google Code and download his demo project for testing the Delphi random function yourself.


Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts

FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes


Ryzen 9 5950x: One Billion Lines Of Delphi Code Compiled In ~5 Minutes On 16 Cores


DelphiCon 2020 FireMonkey Sessions Available Starting November 19


Powerful Commercial Gorilla3D Framework Upgraded For Delphi FireMonkey On Windows And Android

Sign up for our Newsletter and
stay informed

Leave a Reply