Skip to content

Commit

Permalink
+ non-uniform rng
Browse files Browse the repository at this point in the history
  • Loading branch information
Hawkynt committed Aug 30, 2024
1 parent 7afde67 commit 4fb741e
Show file tree
Hide file tree
Showing 8 changed files with 696 additions and 178 deletions.
12 changes: 12 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"recommendations": [
"pomdtr.excalidraw-editor",
"bierner.github-markdown-preview",
"bierner.markdown-checkbox",
"bierner.markdown-emoji",
"bierner.markdown-footnotes",
"bierner.markdown-mermaid",
"saeris.markdown-github-alerts",
"davidanson.vscode-markdownlint"
]
}
394 changes: 386 additions & 8 deletions RandomNumberGenerators/Composites/ArbitraryNumberGenerator.Shrink.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using Hawkynt.RandomNumberGenerators.Composites;

namespace Hawkynt.RandomNumberGenerators.Composites;
namespace Hawkynt.RandomNumberGenerators.NonUniform;

public class BoxMuller(ArbitraryNumberGenerator generator) {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using Hawkynt.RandomNumberGenerators.Composites;

namespace Hawkynt.RandomNumberGenerators.Composites;
namespace Hawkynt.RandomNumberGenerators.NonUniform;

public class MarsagliaPolar(ArbitraryNumberGenerator generator) {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using Hawkynt.RandomNumberGenerators.Composites;

namespace Hawkynt.RandomNumberGenerators.Composites;
namespace Hawkynt.RandomNumberGenerators.NonUniform;

public unsafe class Ziggurat(ArbitraryNumberGenerator generator) {

Expand Down
4 changes: 4 additions & 0 deletions RandomNumberGenerators/RandomNumberGenerators.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<Folder Include="NonUniform\" />
</ItemGroup>


</Project>
1 change: 1 addition & 0 deletions Randomizer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using Hawkynt.RandomNumberGenerators.Cryptographic;
using Hawkynt.RandomNumberGenerators.Deterministic;
using Hawkynt.RandomNumberGenerators.Interfaces;
using Hawkynt.RandomNumberGenerators.NonUniform;

//BenchmarkDotNet.Running.BenchmarkRunner.Run<Benchy>();
//return;
Expand Down
Loading

0 comments on commit 4fb741e

Please sign in to comment.