Skip to content
Diego Giacomelli edited this page Sep 10, 2022 · 1 revision

RandomizationProvider

The pseudorandom numbers used by GeneticSharp are generated through RandomizationProvider.Current property.

The Current property holds an implementation of IRandomization. By default, an instance of FastRandomRandomization is available on this property.

IRandomizations implementations

There are two implementations of IRandomization available on GeneticSharp:

  • BasicRandomization: uses the System.Random class to generate thread-safe pseudorandom numbers.
  • FastRandomRandomization: uses the FastRandom class to generate thread-safe pseudorandom numbers.

Performance differences

You can see the differences in performance between BasicRandomization and FastRandomRandomization on our performance page.

Clone this wiki locally