maxisoft / ASFFreeGames

Collect free steam games while asf is running
GNU Affero General Public License v3.0
121 stars 2 forks source link

Randomize collect interval (#18) and improve code readability #41

Closed maxisoft closed 8 months ago

maxisoft commented 8 months ago

What?

This pull request adds a new feature that randomizes the collect interval using a normal distribution with a mean of 30 minutes and a standard deviation of 7 minutes.

Why?

This feature resolves #18 by adding more randomness and flexibility to the collect interval. It also makes the code more efficient and readable by refactoring and simplifying some methods.

How?

This pull request implements the following changes:

Testing?

To test this feature, you can run the unit tests in RandomUtilsTests.cs and check if they pass. You can also run the plugin with different values of RandomizeRecheckInterval and observe how it affects the collect interval.

Screenshots (optional)

N/A

Anything Else?

N/A