Changeset 9363 for branches/OaaS/HeuristicLab.Random/3.3
- Timestamp:
- 04/16/13 13:13:41 (11 years ago)
- Location:
- branches/OaaS
- Files:
-
- 5 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS
- Property svn:ignore
-
old new 21 21 protoc.exe 22 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll 23 24 packages
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/OaaS/HeuristicLab.Random/3.3/HeuristicLab.Random-3.3.csproj
r6866 r9363 107 107 </Reference> 108 108 <Reference Include="System.Data" /> 109 <Reference Include="System.Drawing" /> 109 110 <Reference Include="System.Xml" /> 110 111 </ItemGroup> 111 112 <ItemGroup> 112 113 <None Include="Plugin.cs.frame" /> 114 <Compile Include="UniformDistributedRandom.cs" /> 113 115 <Compile Include="FastRandom.cs" /> 114 116 <Compile Include="MersenneTwister.cs"> … … 197 199 --> 198 200 <PropertyGroup> 199 <PreBuildEvent >set Path=%25Path%25;$(ProjectDir);$(SolutionDir)201 <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir) 200 202 set ProjectDir=$(ProjectDir) 201 203 set SolutionDir=$(SolutionDir) … … 204 206 call PreBuildEvent.cmd 205 207 </PreBuildEvent> 208 <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' "> 209 export ProjectDir=$(ProjectDir) 210 export SolutionDir=$(SolutionDir) 211 212 $SolutionDir/PreBuildEvent.sh 213 </PreBuildEvent> 206 214 </PropertyGroup> 207 215 </Project> -
branches/OaaS/HeuristicLab.Random/3.3/Plugin.cs.frame
r7259 r9363 26 26 /// Plugin class for HeuristicLab.Random plugin. 27 27 /// </summary> 28 [Plugin("HeuristicLab.Random", "3.3. 6.$WCREV$")]28 [Plugin("HeuristicLab.Random", "3.3.7.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Random-3.3.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Collections", "3.3")] -
branches/OaaS/HeuristicLab.Random/3.3/Properties/AssemblyInfo.cs.frame
r7259 r9363 54 54 // by using the '*' as shown below: 55 55 [assembly: AssemblyVersion("3.3.0.0")] 56 [assembly: AssemblyFileVersion("3.3. 6.$WCREV$")]56 [assembly: AssemblyFileVersion("3.3.7.$WCREV$")] -
branches/OaaS/HeuristicLab.Random/3.3/RandomEnumerable.cs
r7828 r9363 121 121 /// <param name="random">The random number generator to use, its NextDouble() method must produce values in the range [0;1)</param> 122 122 /// <param name="count">The number of items to be selected.</param> 123 /// <param name="sourceCount">Optional parameter specifying the number of elements in the source enumerations</param> 123 124 /// <returns>A sequence of elements that have been chosen randomly.</returns> 124 public static IEnumerable<T> SampleRandomWithoutRepetition<T>(this IEnumerable<T> source, IRandom random, int count) { 125 int remaining = source.Count(); 125 public static IEnumerable<T> SampleRandomWithoutRepetition<T>(this IEnumerable<T> source, IRandom random, int count, int sourceCount = -1) { 126 if (sourceCount == -1) sourceCount = source.Count(); 127 int remaining = sourceCount; 126 128 foreach (var item in source) { 127 129 if (random.NextDouble() * remaining < count) {
Note: See TracChangeset
for help on using the changeset viewer.