Home
last modified time | relevance | path

Searched refs:NextDouble (Results 1 – 25 of 256) sorted by relevance

1234567891011

/dports/lang/mono/mono-5.10.1.57/external/corefx/src/Microsoft.Win32.Registry/tests/
H A DTestData.cs38 … new object[] { "Test_09", new decimal(((double)decimal.MaxValue) * rand.NextDouble()) }, in TestData()
39 … new object[] { "Test_10", new decimal(((double)decimal.MinValue) * rand.NextDouble()) }, in TestData()
40 … new object[] { "Test_11", new decimal(((double)decimal.MinValue) * rand.NextDouble()) }, in TestData()
41 … new object[] { "Test_12", new decimal(((double)decimal.MaxValue) * rand.NextDouble()) }, in TestData()
42 new object[] { "Test_13", int.MaxValue *rand.NextDouble() }, in TestData()
43 new object[] { "Test_14", int.MinValue * rand.NextDouble() }, in TestData()
44 new object[] { "Test_15", int.MaxValue * (float)rand.NextDouble() }, in TestData()
45 new object[] { "Test_16", int.MinValue * (float)rand.NextDouble() } in TestData()
61 … new object[] { 6, (uint)(rand.NextDouble() * int.MaxValue), RegistryValueKind.String }, in TestData()
62 … new object[] { 7, (long)(rand.NextDouble() * int.MaxValue), RegistryValueKind.String }, in TestData()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Runtime.Extensions/tests/Performance/
H A DPerf.Random.cs100 public void NextDouble() in NextDouble() method in System.Tests.Perf_Random
107 d = rand.NextDouble(); in NextDouble()
114 d = rand.NextDouble(); d = rand.NextDouble(); d = rand.NextDouble(); in NextDouble()
115 d = rand.NextDouble(); d = rand.NextDouble(); d = rand.NextDouble(); in NextDouble()
116 d = rand.NextDouble(); d = rand.NextDouble(); d = rand.NextDouble(); in NextDouble()
/dports/lang/v8/v8-9.6.180.12/test/cctest/
H A Dtest-double.cc213 TEST(NextDouble) { in TEST() argument
214 CHECK_EQ(4e-324, Double(0.0).NextDouble()); in TEST()
215 CHECK_EQ(0.0, Double(-0.0).NextDouble()); in TEST()
216 CHECK_EQ(-0.0, Double(-4e-324).NextDouble()); in TEST()
218 Double d1(d0.NextDouble()); in TEST()
219 Double d2(d1.NextDouble()); in TEST()
222 CHECK_EQ(4e-324, d2.NextDouble()); in TEST()
223 CHECK_EQ(-1.7976931348623157e308, Double(-V8_INFINITY).NextDouble()); in TEST()
224 CHECK_EQ(V8_INFINITY, Double(uint64_t{0x7FEF'FFFF'FFFF'FFFF}).NextDouble()); in TEST()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Runtime.Numerics/tests/BigInteger/
H A Dctor.cs99 VerifyCtorInt64((Int64)(Int64.MaxValue * s_random.NextDouble())); in RunCtorInt64Tests()
154 VerifyCtorUInt32((UInt32)(UInt32.MaxValue * s_random.NextDouble())); in RunCtorUInt32Tests()
203 VerifyCtorUInt64((UInt64)(UInt64.MaxValue * s_random.NextDouble())); in RunCtorUInt64Tests()
267 VerifyCtorSingle((Single)(Single.MaxValue * s_random.NextDouble())); in RunCtorSingleTests()
279 VerifyCtorSingle((Single)(s_random.Next(0, 100) + s_random.NextDouble())); in RunCtorSingleTests()
291 … VerifyCtorSingle((Single)((Single.MaxValue * s_random.NextDouble()) + s_random.NextDouble())); in RunCtorSingleTests()
297 …ifyCtorSingle(((Single)((-(Single.MaxValue - 1) * s_random.NextDouble()) - s_random.NextDouble()))… in RunCtorSingleTests()
441 VerifyCtorDouble((Double)(Double.MaxValue * s_random.NextDouble())); in RunCtorDoubleTests()
453 VerifyCtorDouble((Double)(s_random.Next(0, 100) + s_random.NextDouble())); in RunCtorDoubleTests()
465 …VerifyCtorDouble((Double)((Int64.MaxValue / 100 * s_random.NextDouble()) + s_random.NextDouble())); in RunCtorDoubleTests()
[all …]
H A Dcast_to.cs138 … VerifyUInt32ImplicitCastToBigInteger((UInt32)(UInt32.MaxValue * s_random.NextDouble())); in RunUInt32ImplicitCastToBigIntegerTests()
191 … VerifyUInt64ImplicitCastToBigInteger((UInt64)(UInt64.MaxValue * s_random.NextDouble())); in RunUInt64ImplicitCastToBigIntegerTests()
207 …VerifyInt64ImplicitCastToBigInteger(((Int64)(Int64.MaxValue * s_random.NextDouble())) - Int64.MaxV… in RunInt64ImplicitCastToBigIntegerTests()
222 … VerifyInt64ImplicitCastToBigInteger((Int64)(Int64.MaxValue * s_random.NextDouble())); in RunInt64ImplicitCastToBigIntegerTests()
243 …ifySingleExplicitCastToBigInteger(((Single)(Single.MaxValue * s_random.NextDouble())) - Single.Max… in RunSingleExplicitCastToBigIntegerTests()
249 VerifySingleExplicitCastToBigInteger((Single)(-100 * s_random.NextDouble())); in RunSingleExplicitCastToBigIntegerTests()
264 VerifySingleExplicitCastToBigInteger((Single)(100 * s_random.NextDouble())); in RunSingleExplicitCastToBigIntegerTests()
270 … VerifySingleExplicitCastToBigInteger((Single)(Single.MaxValue * s_random.NextDouble())); in RunSingleExplicitCastToBigIntegerTests()
340 VerifyDoubleExplicitCastToBigInteger((Double)(-100 * s_random.NextDouble())); in RunDoubleExplicitCastToBigIntegerTests()
355 VerifyDoubleExplicitCastToBigInteger((Double)(100 * s_random.NextDouble())); in RunDoubleExplicitCastToBigIntegerTests()
[all …]
H A Dcast_from.cs249 … VerifyUInt32ExplicitCastFromBigInteger((UInt32)(UInt32.MaxValue * s_random.NextDouble())); in RunUInt32ExplicitCastFromBigIntegerTests()
352 … VerifyUInt64ExplicitCastFromBigInteger((UInt64)(UInt64.MaxValue * s_random.NextDouble())); in RunUInt64ExplicitCastFromBigIntegerTests()
408 … VerifyInt64ExplicitCastFromBigInteger((Int64)(Int64.MaxValue * s_random.NextDouble())); in RunInt64ExplicitCastFromBigIntegerTests()
452 … VerifySingleExplicitCastFromBigInteger(((Single)(100 * s_random.NextDouble())) - 100); in RunSingleExplicitCastFromBigIntegerTests()
467 VerifySingleExplicitCastFromBigInteger((Single)(100 * s_random.NextDouble())); in RunSingleExplicitCastFromBigIntegerTests()
473 … VerifySingleExplicitCastFromBigInteger((Single)(Single.MaxValue * s_random.NextDouble())); in RunSingleExplicitCastFromBigIntegerTests()
521 … VerifyDoubleExplicitCastFromBigInteger(((Double)(100 * s_random.NextDouble())) - 100); in RunDoubleExplicitCastFromBigIntegerTests()
536 VerifyDoubleExplicitCastFromBigInteger((Double)(100 * s_random.NextDouble())); in RunDoubleExplicitCastFromBigIntegerTests()
542 … VerifyDoubleExplicitCastFromBigInteger((Double)(Double.MaxValue * s_random.NextDouble())); in RunDoubleExplicitCastFromBigIntegerTests()
656 value = (Decimal)(100 * s_random.NextDouble() - 100); in RunDecimalExplicitCastFromBigIntegerTests()
[all …]
H A Dlog.cs37 Assert.Equal(Double.PositiveInfinity, BigInteger.Log(0, s_random.NextDouble())); in RunLogTests()
79 …e.IsNaN(BigInteger.Log(new BigInteger(GetRandomByteArray(s_random, 10)), -s_random.NextDouble()))); in RunLogTests()
94 Double newbase = Math.Min(s_random.NextDouble(), 0.5); in RunLogTests()
102 Double newbase = Math.Min(s_random.NextDouble(), 0.5); in RunLogTests()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Data.SqlClient/tests/ManualTests/SQL/RandomStressTest/
H A DSqlRandomizer.cs192 double sample = base.NextDouble(); in NextAllocationUnit()
199 sample *= base.NextDouble(); in NextAllocationUnit()
446 long ticks = minValue.Ticks + (long)(ticksRange * base.NextDouble()); in NextDateTime()
478 public double NextDouble(double minValue, double maxValueExclusive) in NextDouble() method in System.Data.SqlClient.ManualTesting.Tests.SqlRandomizer
484 double rand01 = base.NextDouble(); in NextDouble()
506 public double NextDouble(double minValue, double maxValueExclusive, int precision) in NextDouble() method in System.Data.SqlClient.ManualTesting.Tests.SqlRandomizer
519 double res = NextDouble(minValue, maxValueExclusive); in NextDouble()
538 return (float)NextDouble(float.MinValue, float.MaxValue); in NextReal()
619 return (decimal)NextDouble( in NextSmallMoney()
631 … return (decimal)NextDouble((double)SqlMoney.MinValue.Value, (double)SqlMoney.MaxValue.Value); in NextMoney()
/dports/lang/mono/mono-5.10.1.57/external/nunit-lite/NUnitLite-1.0.0/src/tests/Internal/
H A DRandomizerTests.cs61 values[i] = r.NextDouble(); in RandomDoublesAreUnique()
109 Assert.That(r1.NextDouble(), Is.EqualTo(r2.NextDouble())); in RandomizersWithSameSeedsReturnSameValues()
119 Assert.That(r1.NextDouble(), Is.Not.EqualTo(r2.NextDouble())); in RandomizersWithDifferentSeedsReturnDifferentValues()
/dports/devel/double-conversion/double-conversion-3.1.6/test/cctest/
H A Dtest-ieee.cc411 TEST(NextDouble) { in TEST() argument
412 CHECK_EQ(4e-324, Double(0.0).NextDouble()); in TEST()
413 CHECK_EQ(0.0, Double(-0.0).NextDouble()); in TEST()
414 CHECK_EQ(-0.0, Double(-4e-324).NextDouble()); in TEST()
415 CHECK(Double(Double(-0.0).NextDouble()).Sign() > 0); in TEST()
416 CHECK(Double(Double(-4e-324).NextDouble()).Sign() < 0); in TEST()
418 Double d1(d0.NextDouble()); in TEST()
419 Double d2(d1.NextDouble()); in TEST()
424 CHECK_EQ(4e-324, d2.NextDouble()); in TEST()
425 CHECK_EQ(-1.7976931348623157e308, Double(-Double::Infinity()).NextDouble()); in TEST()
[all …]
/dports/devel/py-ujson/ujson-5.0.0/deps/double-conversion/test/cctest/
H A Dtest-ieee.cc385 TEST(NextDouble) { in TEST() argument
386 CHECK_EQ(4e-324, Double(0.0).NextDouble()); in TEST()
387 CHECK_EQ(0.0, Double(-0.0).NextDouble()); in TEST()
388 CHECK_EQ(-0.0, Double(-4e-324).NextDouble()); in TEST()
389 CHECK(Double(Double(-0.0).NextDouble()).Sign() > 0); in TEST()
390 CHECK(Double(Double(-4e-324).NextDouble()).Sign() < 0); in TEST()
392 Double d1(d0.NextDouble()); in TEST()
393 Double d2(d1.NextDouble()); in TEST()
398 CHECK_EQ(4e-324, d2.NextDouble()); in TEST()
399 CHECK_EQ(-1.7976931348623157e308, Double(-Double::Infinity()).NextDouble()); in TEST()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/nunit-lite/NUnitLite-1.0.0/src/framework/Internal/
H A DRandomGenerator.cs146 return Rand.NextDouble() < Math.Abs(probability % 1.0); in GetBool()
157 return Rand.NextDouble(); in GetDouble()
165 return (float)Rand.NextDouble(); in GetFloat()
H A DRandomizer.cs129 rvals[index] = NextDouble(); in GetDoubles()
167 rvals[index] = NextDouble() * range + min; in GetDoubles()
/dports/lang/mono-basic/mono-basic-4.7/vbruntime/Microsoft.VisualBasic/Microsoft.VisualBasic/
H A DVBMath.vb45 Private Shared m_last As Single = CType(m_rnd.NextDouble(), Single)
48 m_last = CType(m_rnd.NextDouble(), Single)
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.ServiceModel.Channels/System/ServiceModel/Channels/
H A DSynchronizedRandom.cs62 public override double NextDouble() in NextDouble() method in System.ServiceModel.Channels.SynchronizedRandom
66 return base.NextDouble(); in NextDouble()
/dports/lang/mono/mono-5.10.1.57/mcs/class/corlib/Test/System/
H A DRandomTest.cs46 Assert.AreEqual (r.NextDouble (), r2.NextDouble (), i.ToString ()); in CompareStreamWithSameSeed()
121 random.NextDouble (); in Base_Double()
/dports/graphics/pinta/pinta-1.7.1/Pinta.Tools/Brushes/
H A DGridBrush.cs55 x + Random.NextDouble () * dx, in OnMouseMove()
56 y + Random.NextDouble () * dy, in OnMouseMove()
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Data.SqlClient/tests/StressTests/System.Data.StressFramework/
H A DTrackedRandom.cs178 public override double NextDouble() in NextDouble() method in Stress.Data.TrackedRandom
181 return base.NextDouble(); in NextDouble()
/dports/lang/mono/mono-5.10.1.57/mcs/class/Mono.C5/C5/
H A DRandom.cs62 public override double NextDouble() in NextDouble() method in C5.C5Random
74 return NextDouble(); in Sample()
/dports/games/openbve/OpenBVE-1.8.2.1/source/TrainManager/Train/
H A DStation.cs256 if (TrainManagerBase.RandomNumberGenerator.NextDouble() < p) in UpdateStation()
263 … Cars[j].Doors[k].DoorLockState = 0.2 + 0.6 * TrainManagerBase.RandomNumberGenerator.NextDouble(); in UpdateStation()
269 p = TrainManagerBase.RandomNumberGenerator.NextDouble(); in UpdateStation()
300 …].Doors[0].AnticipatedReopen && TrainManagerBase.RandomNumberGenerator.NextDouble() < TrainManager… in UpdateStation()
311 …].Doors[1].AnticipatedReopen && TrainManagerBase.RandomNumberGenerator.NextDouble() < TrainManager… in UpdateStation()
453 if (r >= TrainManagerBase.RandomNumberGenerator.NextDouble()) in UpdateStation()
456 … (int) Math.Floor(TrainManagerBase.RandomNumberGenerator.NextDouble() * Cars[j].Doors.Length); in UpdateStation()
/dports/math/vowpal_wabbit/vowpal_wabbit-7.10/explore/tests/
H A DMWTExploreTests.cs123 …uint chosenAction = mwtt.ChooseAction(explorer, rand.NextDouble().ToString(), new TestContext() { … in Softmax()
153 … mwtt.ChooseAction(explorer, rand.NextDouble().ToString(), new TestContext() { Id = 100 }); in SoftmaxScores()
154 … mwtt.ChooseAction(explorer, rand.NextDouble().ToString(), new TestContext() { Id = 101 }); in SoftmaxScores()
155 … mwtt.ChooseAction(explorer, rand.NextDouble().ToString(), new TestContext() { Id = 102 }); in SoftmaxScores()
/dports/www/node10/node-v10.24.1/deps/v8/src/base/utils/
H A Drandom-number-generator.cc100 double RandomNumberGenerator::NextDouble() { in NextDouble() function in v8::base::RandomNumberGenerator
145 uint64_t x = static_cast<uint64_t>(NextDouble() * max); in NextSample()
184 size_t x = static_cast<size_t>(NextDouble() * result.size()); in NextSampleSlow()
/dports/devel/php-ice37/ice-3.7.2/csharp/test/Ice/hash/
H A DClient.cs341 Test.PointF pf = new Test.PointF((float)rand.NextDouble(),
342 (float)rand.NextDouble(),
343 (float)rand.NextDouble());
367 Test.PointD pd = new Test.PointD(rand.NextDouble(),
368 rand.NextDouble(),
369 rand.NextDouble());
/dports/devel/ice37/ice-3.7.2/csharp/test/Ice/hash/
H A DClient.cs341 Test.PointF pf = new Test.PointF((float)rand.NextDouble(), in run()
342 (float)rand.NextDouble(), in run()
343 (float)rand.NextDouble()); in run()
367 Test.PointD pd = new Test.PointD(rand.NextDouble(), in run()
368 rand.NextDouble(), in run()
369 rand.NextDouble()); in run()
/dports/devel/py-ice37/ice-3.7.2/csharp/test/Ice/hash/
H A DClient.cs341 Test.PointF pf = new Test.PointF((float)rand.NextDouble(), in run()
342 (float)rand.NextDouble(), in run()
343 (float)rand.NextDouble()); in run()
367 Test.PointD pd = new Test.PointD(rand.NextDouble(), in run()
368 rand.NextDouble(), in run()
369 rand.NextDouble()); in run()

1234567891011