Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/10/18 10:15:16 (6 years ago)
Author:
jkarder
Message:

#2933: added RandomSeedGenerator

Location:
trunk/HeuristicLab.Random/3.3
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Random/3.3/HeuristicLab.Random-3.3.csproj

    r14407 r16071  
    120120    <Compile Include="GammaDistributedRandom.cs" />
    121121    <Compile Include="ListExtensions.cs" />
     122    <Compile Include="RandomSeedGenerator.cs" />
    122123    <Compile Include="UniformDistributedRandom.cs" />
    123124    <Compile Include="FastRandom.cs" />
  • trunk/HeuristicLab.Random/3.3/RandomCreator.cs

    r15583 r16071  
    9494      IntValue seed = SeedParameter.ActualValue;
    9595
    96       if (setSeedRandomly) seed.Value = new System.Random().Next();
     96      if (setSeedRandomly) seed.Value = RandomSeedGenerator.GetSeed();
    9797      IRandom random = (IRandom)RandomType.Clone();
    9898      random.Reset(seed.Value);
Note: See TracChangeset for help on using the changeset viewer.