Recent

Author Topic: Added Delphi compatible random to the wiki  (Read 2417 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Added Delphi compatible random to the wiki
« on: March 26, 2017, 03:26:55 pm »
For those who need it:
I added a Delphi compatible and cross-platform random number unit to the wiki.
http://wiki.freepascal.org/Delphi_compatible_LCG_Random#Delphi_compatible_random_numbers.

Written from scratch from info here:
https://en.wikipedia.org/wiki/Linear_congruential_generator

This may come in handy if you have code or data that relies on Delphi's Prng implementation.
« Last Edit: March 26, 2017, 04:08:53 pm by Thaddy »
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: Added Delphi compatible random to the wiki
« Reply #1 on: March 26, 2017, 07:56:53 pm »
On request, I changed the naming conventions from DelphiRandom to LCGRandom.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: Added Delphi compatible random to the wiki
« Reply #2 on: March 26, 2017, 09:02:54 pm »
Also added demo as proof that output is the same as Delphi.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

cpicanco

  • Hero Member
  • *****
  • Posts: 618
  • Behavioral Scientist and Programmer
    • Portfolio
Re: Added Delphi compatible random to the wiki
« Reply #3 on: March 29, 2017, 07:15:45 pm »
Congratulations!
Be mindful and excellent with each other.
https://github.com/cpicanco/

 

TinyPortal © 2005-2018