-
-
Notifications
You must be signed in to change notification settings - Fork 337
Randomization
Diego Giacomelli edited this page Sep 10, 2022
·
1 revision
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.
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.
You can see the differences in performance between BasicRandomization
and FastRandomRandomization
on our performance page.