Skip to content

Commit

Permalink
get float from content random
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Dec 10, 2024
1 parent aa9b9ee commit e6d34b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docs-generator/Domain/Generators.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static Generators()
.Ignore(p => p.Links)
.Ignore(p => p.Directory)
.RuleFor(p => p.FileName, f => f.System.FileName("md"))
.RuleFor(p => p.IncludeInUpdate, f => f.Random.Float() <= Determinism.Random.ContentProbability)
.RuleFor(p => p.IncludeInUpdate, f => Determinism.Random.Contents.Float() <= Determinism.Random.ContentProbability)
.RuleFor(p => p.Sections, f => Section.Generate(Determinism.Random.Contents.Number(1, 12)).ToArray());
}

Expand Down

0 comments on commit e6d34b1

Please sign in to comment.