191 references to Random
Aspire.Hosting.CodeGeneration.Go (1)
GoLanguageSupport.cs (1)
84? new Random(request.PortSeed.Value)
Aspire.Hosting.CodeGeneration.Java (1)
JavaLanguageSupport.cs (1)
74? new Random(request.PortSeed.Value)
Aspire.Hosting.CodeGeneration.Python (1)
PythonLanguageSupport.cs (1)
106? new Random(request.PortSeed.Value)
Aspire.Hosting.CodeGeneration.Rust (1)
RustLanguageSupport.cs (1)
88? new Random(request.PortSeed.Value)
Aspire.Hosting.CodeGeneration.TypeScript (1)
TypeScriptLanguageSupport.cs (1)
99? new Random(request.PortSeed.Value)
Aspire.Hosting.Tests (1)
ApplicationModel\ResourceAnnotationCollectionTests.cs (1)
191var random = new Random(42);
ILCompiler.DependencyAnalysisFramework (1)
DependencyAnalyzer.cs (1)
113stackPopRandomizer = new Random(seed);
ILCompiler.ReadyToRun (2)
Compiler\FileLayoutOptimizer.cs (1)
198Random rand = new Random(0);
Compiler\ProfileDataManager.cs (1)
178Random rand = new Random(method.GetHashCode());
ILCompiler.RyuJit (1)
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\FileLayoutOptimizer.cs (1)
198Random rand = new Random(0);
Microsoft.AspNetCore.DataProtection.MicroBenchmarks (1)
Benchmarks\SpanDataProtectorComparison.cs (1)
76var random = new Random(42); // Fixed seed for consistent results
Microsoft.CodeAnalysis.CSharp (1)
Utilities\ValueSetFactory.EnumeratedValueSet.cs (1)
66var candidates = _tc.RandomValues(_membersIncludedOrExcluded.Count + 1, new Random(0), _membersIncludedOrExcluded.Count + 1);
Microsoft.Extensions.AI.Abstractions.Tests (4)
Contents\DataContentTests.cs (3)
281Random rand = new(42); 896new Random(42).NextBytes(testData); 923new Random(42).NextBytes(testData);
Embeddings\BinaryEmbeddingTests.cs (1)
60Random r = new(42);
Microsoft.Extensions.Options.Contextual.Tests (1)
AcceptanceTests.cs (1)
48private readonly Random _rng = new(0);
Microsoft.ML.AutoML (6)
API\BinaryClassificationExperiment.cs (1)
371_rnd = settings.Seed.HasValue ? new Random(settings.Seed.Value) : new Random();
API\MulticlassClassificationExperiment.cs (1)
357_rnd = settings.Seed.HasValue ? new Random(settings.Seed.Value) : new Random();
API\RegressionExperiment.cs (1)
377_rnd = settings.Seed.HasValue ? new Random(settings.Seed.Value) : new Random();
Tuner\PipelineProposer.cs (1)
79_rand = new Random(settings.Seed.Value);
Tuner\SmacTuner.cs (1)
82_rnd = new Random(seed.Value);
Utils\RandomNumberGenerator.cs (1)
20_random = new Random(seed);
Microsoft.ML.AutoML.Samples (2)
AutoMLExperiment.cs (1)
89var random = new Random(seed);
Sweepable\SweepableLightGBMBinaryExperiment.cs (1)
116var random = new Random(seed);
Microsoft.ML.AutoML.Tests (1)
SweeperTests.cs (1)
150Random rand = new Random(0);
Microsoft.ML.CpuMath.PerformanceTests (1)
PerformanceTests.cs (1)
85Random rand = new Random(_seed);
Microsoft.ML.Data (1)
Prediction\Calibrator.cs (1)
1384_random = new System.Random(System.Threading.Interlocked.Increment(ref _randSeed) - 1);
Microsoft.ML.FastTree (10)
BoostingFastTree.cs (1)
100optimizationAlgorithm.DropoutRng = new Random(FastTreeTrainerOptions.Seed);
Dataset\Dataset.cs (1)
582Random rnd = new Random(randomSeed);
FastTree.cs (1)
416_featureSelectionRandom = new Random(FastTreeTrainerOptions.FeatureSelectionSeed);
RandomForestRegression.cs (1)
549_rgen = new Random(0); // Ideally we'd get this from the host.
SumupPerformanceCommand.cs (1)
177Random r = new Random(salt + i);
Training\Applications\ObjectiveFunction.cs (1)
50_rnd = new Random(randomNumberGeneratorSeed);
Training\BaggingProvider.cs (1)
23RndGenerator = new Random(randomSeed);
Training\EnsembleCompression\LassoBasedEnsembleCompressor.cs (1)
63_rnd = new Random(randomSeed);
Training\ScoreTracker.cs (1)
89Random rndStart = new Random(rngSeed);
Training\TreeLearners\LeastSquaresRegressionTreeLearner.cs (1)
171Rand = new Random(randomSeed);
Microsoft.ML.IntegrationTests (4)
Datasets\Iris.cs (1)
42var rng = new Random(seed);
Datasets\TypeTestData.cs (1)
111var rng = new Random(seed);
DataTransformation.cs (1)
220var rng = new Random(seed);
Prediction.cs (1)
87var rnd = new Random(1);
Microsoft.ML.PCA (2)
PcaTrainer.cs (1)
283var rng = new Random(seed);
PcaTransformer.cs (1)
309var rnd = columns[iinfo].Seed == null ? Host.Rand : new Random(columns[iinfo].Seed.Value);
Microsoft.ML.PerformanceTests (2)
BenchmarkBase.cs (1)
64Random random = new Random(1);
CacheDataViewBench.cs (1)
60var rand = new Random(0);
Microsoft.ML.Predictor.Tests (2)
TestTransposer.cs (2)
155Random rgen = new Random(0); 221Random rgen = new Random(1);
Microsoft.ML.Samples (96)
Dynamic\DataOperations\CrossValidationSplit.cs (1)
179var random = new Random(seed);
Dynamic\DataOperations\DataViewEnumerable.cs (1)
89var rng = new Random(1234321);
Dynamic\DataOperations\FilterRowsByColumn.cs (1)
89var rng = new Random(1234321);
Dynamic\DataOperations\LoadingSvmLight.cs (1)
15var random = new Random(42);
Dynamic\DataOperations\LoadingText.cs (1)
17var random = new Random(1);
Dynamic\DataOperations\ShuffleRows.cs (1)
77var rng = new Random(1234321);
Dynamic\DataOperations\SkipRows.cs (1)
81var rng = new Random(1234321);
Dynamic\DataOperations\TakeRows.cs (1)
82var rng = new Random(1234321);
Dynamic\DataOperations\TrainTestSplit.cs (1)
86var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\AveragedPerceptron.cs (1)
88var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\AveragedPerceptronWithOptions.cs (1)
99var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\FactorizationMachine.cs (1)
96var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\FastForest.cs (1)
91var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\FastForestWithOptions.cs (1)
103var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\FastTree.cs (1)
94var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\FastTreeWithOptions.cs (1)
106var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\FieldAwareFactorizationMachine.cs (1)
145var rnd = new Random(seed);
Dynamic\Trainers\BinaryClassification\FieldAwareFactorizationMachineWithOptions.cs (1)
156var rnd = new Random(seed);
Dynamic\Trainers\BinaryClassification\Gam.cs (1)
145var rng = new Random(seed);
Dynamic\Trainers\BinaryClassification\GamWithOptions.cs (1)
152var rng = new Random(seed);
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegression.cs (1)
91var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegressionWithOptions.cs (1)
100var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\LdSvm.cs (1)
88var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\LdSvmWithOptions.cs (1)
97var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\LightGbm.cs (1)
91var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\LightGbmWithOptions.cs (1)
102var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\LinearSvm.cs (1)
88var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\LinearSvmWithOptions.cs (1)
97var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportance.cs (1)
100var rng = new Random(seed);
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportanceLoadFromDisk.cs (1)
86var rng = new Random(seed);
Dynamic\Trainers\BinaryClassification\PriorTrainer.cs (1)
88var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegression.cs (1)
96var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegressionWithOptions.cs (1)
108var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\SdcaNonCalibrated.cs (1)
95var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\SdcaNonCalibratedWithOptions.cs (1)
110var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\SgdCalibrated.cs (1)
88var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\SgdCalibratedWithOptions.cs (1)
100var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\SgdNonCalibrated.cs (1)
88var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\SgdNonCalibratedWithOptions.cs (1)
97var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegression.cs (1)
91var random = new Random(seed);
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegressionWithOptions.cs (1)
100var random = new Random(seed);
Dynamic\Trainers\Clustering\KMeans.cs (1)
95var random = new Random(seed);
Dynamic\Trainers\Clustering\KMeansWithOptions.cs (1)
103var random = new Random(seed);
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropy.cs (1)
92var random = new Random(seed);
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropyWithOptions.cs (1)
100var random = new Random(seed);
Dynamic\Trainers\MulticlassClassification\LightGbm.cs (1)
95var random = new Random(seed);
Dynamic\Trainers\MulticlassClassification\LightGbmWithOptions.cs (1)
105var random = new Random(seed);
Dynamic\Trainers\MulticlassClassification\LogLossPerClass.cs (1)
75var random = new Random(seed);
Dynamic\Trainers\MulticlassClassification\NaiveBayes.cs (1)
100var random = new Random(seed);
Dynamic\Trainers\MulticlassClassification\OneVersusAll.cs (1)
93var random = new Random(seed);
Dynamic\Trainers\MulticlassClassification\PairwiseCoupling.cs (1)
93var random = new Random(seed);
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportance.cs (1)
104var rng = new Random(seed);
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportanceLoadFromDisk.cs (1)
113var rng = new Random(seed);
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropy.cs (1)
99var random = new Random(seed);
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropyWithOptions.cs (1)
109var random = new Random(seed);
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibrated.cs (1)
100var random = new Random(seed);
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibratedWithOptions.cs (1)
109var random = new Random(seed);
Dynamic\Trainers\Ranking\FastTree.cs (1)
74var random = new Random(seed);
Dynamic\Trainers\Ranking\FastTreeWithOptions.cs (1)
88var random = new Random(seed);
Dynamic\Trainers\Ranking\LightGbm.cs (1)
74var random = new Random(seed);
Dynamic\Trainers\Ranking\LightGbmWithOptions.cs (1)
89var random = new Random(seed);
Dynamic\Trainers\Ranking\PermutationFeatureImportance.cs (1)
114var rng = new Random(seed);
Dynamic\Trainers\Ranking\PermutationFeatureImportanceLoadFromDisk.cs (1)
121var rng = new Random(seed);
Dynamic\Trainers\Regression\FastForest.cs (1)
75var random = new Random(seed);
Dynamic\Trainers\Regression\FastForestWithOptions.cs (1)
88var random = new Random(seed);
Dynamic\Trainers\Regression\FastTree.cs (1)
75var random = new Random(seed);
Dynamic\Trainers\Regression\FastTreeTweedie.cs (1)
75var random = new Random(seed);
Dynamic\Trainers\Regression\FastTreeTweedieWithOptions.cs (1)
90var random = new Random(seed);
Dynamic\Trainers\Regression\FastTreeWithOptions.cs (1)
91var random = new Random(seed);
Dynamic\Trainers\Regression\Gam.cs (1)
75var random = new Random(seed);
Dynamic\Trainers\Regression\GamAdvanced.cs (1)
143var rng = new Random(seed);
Dynamic\Trainers\Regression\GamWithOptions.cs (1)
86var random = new Random(seed);
Dynamic\Trainers\Regression\GamWithOptionsAdvanced.cs (1)
151var rng = new Random(seed);
Dynamic\Trainers\Regression\LbfgsPoissonRegression.cs (1)
73var random = new Random(seed);
Dynamic\Trainers\Regression\LbfgsPoissonRegressionWithOptions.cs (1)
87var random = new Random(seed);
Dynamic\Trainers\Regression\LightGbm.cs (1)
76var random = new Random(seed);
Dynamic\Trainers\Regression\LightGbmWithOptions.cs (1)
95var random = new Random(seed);
Dynamic\Trainers\Regression\OnlineGradientDescent.cs (1)
64var random = new Random(seed);
Dynamic\Trainers\Regression\OnlineGradientDescentWithOptions.cs (1)
80var random = new Random(seed);
Dynamic\Trainers\Regression\OrdinaryLeastSquares.cs (1)
72var random = new Random(seed);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptions.cs (1)
84var random = new Random(seed);
Dynamic\Trainers\Regression\PermutationFeatureImportance.cs (1)
110var rng = new Random(seed);
Dynamic\Trainers\Regression\PermutationFeatureImportanceLoadFromDisk.cs (1)
117var rng = new Random(seed);
Dynamic\Trainers\Regression\Sdca.cs (1)
72var random = new Random(seed);
Dynamic\Trainers\Regression\SdcaWithOptions.cs (1)
88var random = new Random(seed);
Dynamic\Transforms\CalculateFeatureContribution.cs (1)
119var rng = new Random(seed);
Dynamic\Transforms\CalculateFeatureContributionCalibrated.cs (1)
126var rng = new Random(seed);
Dynamic\Transforms\Conversion\MapKeyToValueMultiColumn.cs (1)
91var rnd = new Random(0);
Dynamic\Transforms\ImageAnalytics\ConvertToImage.cs (1)
97var random = new Random(seed);
Dynamic\Transforms\TreeFeaturization\FastForestBinaryFeaturizationWithOptions.cs (1)
125var random = new Random(seed);
Dynamic\Transforms\TreeFeaturization\FastForestRegressionFeaturizationWithOptions.cs (1)
126var random = new Random(seed);
Dynamic\Transforms\TreeFeaturization\FastTreeBinaryFeaturizationWithOptions.cs (1)
127var random = new Random(seed);
Dynamic\Transforms\TreeFeaturization\FastTreeRankingFeaturizationWithOptions.cs (1)
123var random = new Random(seed);
Dynamic\Transforms\TreeFeaturization\FastTreeRegressionFeaturizationWithOptions.cs (1)
126var random = new Random(seed);
Dynamic\Transforms\TreeFeaturization\FastTreeTweedieFeaturizationWithOptions.cs (1)
126var random = new Random(seed);
Dynamic\Transforms\TreeFeaturization\PretrainedTreeEnsembleFeaturizationWithOptions.cs (1)
134var random = new Random(seed);
Microsoft.ML.SamplesUtils (4)
SamplesDatasetUtils.cs (4)
246var rnd = new Random(0); 295var rnd = new Random(0); 309var rnd = new Random(0); 365var rnd = new Random(0);
Microsoft.ML.SearchSpace (2)
Tuner\RandomTuner.cs (2)
18_rnd = new Random(seed.Value); 28_rnd = new Random(seed);
Microsoft.ML.StandardTrainers (3)
Optimizer\DifferentiableFunction.cs (3)
163private static readonly Random _r = new Random(5); 260Random r = new Random(5); 299Random r = new Random(5);
Microsoft.ML.Sweeper (1)
Algorithms\SweeperProbabilityUtils.cs (1)
18_rng = new Random(host.Rand.Next());
Microsoft.ML.Sweeper.Tests (9)
TestSweeper.cs (9)
69var random = new Random(123); 132var random = new Random(42); 182var random = new Random(42); 232var random = new Random(42); 300var random = new Random(42); 352var random = new Random(42); 540var random = new Random(42); 596var random = new Random(42); 644var random = new Random(42);
Microsoft.ML.TestFramework (2)
DataPipe\TestDataPipe.cs (1)
1169Random rgen = new Random(0);
DataPipe\TestDataPipeBase.cs (1)
266using (var c1 = newPipe.GetRowCursor(newPipe.Schema, new Random(123)))
Microsoft.ML.Tests (16)
CalibratedModelParametersTests.cs (1)
99var rand = new Random(10);
FastTreeSumupParityTests.cs (4)
140var rand = new Random(7); 157var rand = new Random(101); 237var rand = new Random(seed); 278var rand = new Random(seed);
FeatureContributionTests.cs (1)
260var rand = new Random(10);
ImagesTests.cs (1)
1103var random = new Random(seed);
PermutationFeatureImportanceTests.cs (2)
817var rand = new Random(10); 884var rand = new Random(10);
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (1)
487var r = new Random(454);
Scenarios\ClusteringTests.cs (1)
34var rand = new Random(1);
TrainerEstimators\FAFMEstimator.cs (1)
124var rnd = new Random(0);
TrainerEstimators\TreeEstimators.cs (1)
727var random = new Random(seed);
Transformers\NormalizerTests.cs (3)
1111var rand = new Random(seed); 1182Random rand = new Random(0); 1256Random rand = new Random(0);
Microsoft.ML.Transforms (2)
Dracula\CountTableTransformer.cs (2)
686var rand = _addNoise ? new Random(_parent.Seeds[iinfo]) : null; 706var rand = _addNoise ? new Random(_parent.Seeds[iinfo]) : null;
ScenarioTests.Common.Tests (2)
ScenarioTestHelpers.cs (1)
237Random rand = new Random(seed);
ScenarioTestTypes.cs (1)
1139Random rand = new Random(seed);
Shared.Tests (1)
Pools\PoolTests.cs (1)
266var r = new Random(seed);
System.Data.Odbc (1)
Common\System\Data\ProviderBase\DbConnectionPool.cs (1)
96private static readonly Random s_random = new Random(5101977); // Value obtained from Dave Driver
System.Data.OleDb (1)
System\Data\ProviderBase\DbConnectionPool.cs (1)
336private static readonly Random _random = new Random(5101977); // Value obtained from Dave Driver
System.ServiceModel.NetNamedPipe (1)
System\Runtime\BackoffTimeoutHelper.cs (1)
31_random = new Random(GetHashCode());
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Sample.cs (1)
37Random random = new Random(randomseed);
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Emitter.cs (1)
1641Random stackCookieGenerator = new(12345); // seed for deterministic behavior