Home
last modified time | relevance | path

Searched refs:s_random (Results 1 – 25 of 58) sorted by relevance

123

/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Runtime.Numerics/tests/BigInteger/
H A Dmodpow.cs12 private static Random s_random = new Random(100); field in System.Numerics.Tests.modpowTest
77 tempByteArray1 = GetRandomByteArray(s_random); in ModPowNegative()
79 tempByteArray3 = GetRandomByteArray(s_random); in ModPowNegative()
89 tempByteArray1 = GetRandomByteArray(s_random); in ModPowNegative()
130 tempByteArray1 = GetRandomByteArray(s_random); in ModPow1Large2SmallInt()
137 tempByteArray3 = GetRandomByteArray(s_random); in ModPow1Large2SmallInt()
160 tempByteArray1 = GetRandomByteArray(s_random); in ModPow2Large1SmallInt()
221 tempByteArray2 = GetRandomByteArray(s_random); in ModPow0Power()
224 tempByteArray1 = GetRandomByteArray(s_random); in ModPow0Power()
228 tempByteArray1 = GetRandomByteArray(s_random); in ModPow0Power()
[all …]
H A Dop_leftshift.cs12 private static Random s_random = new Random(100); field in System.Numerics.Tests.op_leftshiftTest
23 tempByteArray1 = GetRandomByteArray(s_random); in RunLeftShiftTests()
24 tempByteArray2 = GetRandomPosByteArray(s_random, 2); in RunLeftShiftTests()
31 tempByteArray1 = GetRandomByteArray(s_random); in RunLeftShiftTests()
39 tempByteArray1 = GetRandomByteArray(s_random); in RunLeftShiftTests()
46 tempByteArray1 = GetRandomByteArray(s_random); in RunLeftShiftTests()
54 tempByteArray1 = GetRandomByteArray(s_random); in RunLeftShiftTests()
62 tempByteArray1 = GetRandomByteArray(s_random); in RunLeftShiftTests()
70 tempByteArray1 = GetRandomByteArray(s_random); in RunLeftShiftTests()
78 tempByteArray1 = GetRandomByteArray(s_random, 2); in RunLeftShiftTests()
[all …]
H A Dop_rightshift.cs12 private static Random s_random = new Random(100); field in System.Numerics.Tests.op_rightshiftTest
38 tempByteArray1 = GetRandomByteArray(s_random); in RunRightShiftTests()
39 tempByteArray2 = GetRandomPosByteArray(s_random, 2); in RunRightShiftTests()
46 tempByteArray1 = GetRandomByteArray(s_random); in RunRightShiftTests()
54 tempByteArray1 = GetRandomByteArray(s_random); in RunRightShiftTests()
61 tempByteArray1 = GetRandomByteArray(s_random); in RunRightShiftTests()
69 tempByteArray1 = GetRandomByteArray(s_random); in RunRightShiftTests()
77 tempByteArray1 = GetRandomByteArray(s_random); in RunRightShiftTests()
85 tempByteArray1 = GetRandomByteArray(s_random); in RunRightShiftTests()
93 tempByteArray1 = GetRandomByteArray(s_random, 2); in RunRightShiftTests()
[all …]
H A DBigIntegerToStringTests.cs18 private static Random s_random = new Random(100); field in System.Numerics.Tests.ToStringTest
28 test = GetDigitSequence(100, 1000, s_random); in RunSimpleToStringTests()
35 test = GetDigitSequence(1, 20, s_random); in RunSimpleToStringTests()
42 test = GetDigitSequence(100, 1000, s_random); in RunSimpleToStringTests()
49 test = GetDigitSequence(1, 20, s_random); in RunSimpleToStringTests()
72 RunSimpleProviderToStringTests(s_random, "", nfi, 0, DecimalFormatter); in RunProviderToStringTests()
74 RunSimpleProviderToStringTests(s_random, "D", nfi, 0, DecimalFormatter); in RunProviderToStringTests()
80 RunSimpleProviderToStringTests(s_random, "X", nfi, 0, HexFormatter); in RunProviderToStringTests()
122 test = GetDigitSequence(2000, 2000, s_random); in RunStandardFormatToStringTests()
182 format = GetRandomInvalidFormatChar(s_random); in RunStandardFormatToStringTests()
[all …]
H A Dop_multiply.cs12 private static Random s_random = new Random(100); field in System.Numerics.Tests.op_multiplyTest
23 tempByteArray1 = GetRandomByteArray(s_random); in RunMultiplyPositive()
30 tempByteArray1 = GetRandomByteArray(s_random); in RunMultiplyPositive()
31 tempByteArray2 = GetRandomByteArray(s_random); in RunMultiplyPositive()
38 tempByteArray1 = GetRandomByteArray(s_random, 2); in RunMultiplyPositive()
39 tempByteArray2 = GetRandomByteArray(s_random, 2); in RunMultiplyPositive()
75 tempByteArray1 = GetRandomByteArray(s_random); in RunMultiplyPositiveWith0()
80 tempByteArray2 = GetRandomByteArray(s_random); in RunMultiplyPositiveWith0()
171 tempByteArray1 = GetRandomByteArray(s_random); in RunMultiplyTests()
178 tempByteArray1 = GetRandomByteArray(s_random); in RunMultiplyTests()
[all …]
H A Dmin.cs12 private static Random s_random = new Random(100); field in System.Numerics.Tests.minTest
23 tempByteArray1 = GetRandomByteArray(s_random); in RunMinTests()
24 tempByteArray2 = GetRandomByteArray(s_random); in RunMinTests()
31 tempByteArray1 = GetRandomByteArray(s_random, 2); in RunMinTests()
32 tempByteArray2 = GetRandomByteArray(s_random, 2); in RunMinTests()
39 tempByteArray1 = GetRandomByteArray(s_random); in RunMinTests()
44 tempByteArray2 = GetRandomByteArray(s_random); in RunMinTests()
51 tempByteArray1 = GetRandomByteArray(s_random); in RunMinTests()
56 tempByteArray2 = GetRandomByteArray(s_random); in RunMinTests()
76 tempByteArray1 = GetRandomByteArray(s_random); in RunMinTests()
[all …]
H A Dop_and.cs12 private static Random s_random = new Random(100); field in System.Numerics.Tests.op_andTest
23 tempByteArray1 = GetRandomByteArray(s_random); in RunAndTests()
24 tempByteArray2 = GetRandomByteArray(s_random); in RunAndTests()
31 tempByteArray1 = GetRandomByteArray(s_random, 2); in RunAndTests()
32 tempByteArray2 = GetRandomByteArray(s_random, 2); in RunAndTests()
39 tempByteArray1 = GetRandomByteArray(s_random); in RunAndTests()
44 tempByteArray2 = GetRandomByteArray(s_random); in RunAndTests()
51 tempByteArray1 = GetRandomByteArray(s_random); in RunAndTests()
56 tempByteArray2 = GetRandomByteArray(s_random); in RunAndTests()
75 tempByteArray1 = GetRandomByteArray(s_random); in RunAndTests()
[all …]
H A Dmax.cs12 private static Random s_random = new Random(100); field in System.Numerics.Tests.maxTest
23 tempByteArray1 = GetRandomByteArray(s_random); in RunMaxTests()
24 tempByteArray2 = GetRandomByteArray(s_random); in RunMaxTests()
31 tempByteArray1 = GetRandomByteArray(s_random, 2); in RunMaxTests()
32 tempByteArray2 = GetRandomByteArray(s_random, 2); in RunMaxTests()
39 tempByteArray1 = GetRandomByteArray(s_random); in RunMaxTests()
44 tempByteArray2 = GetRandomByteArray(s_random); in RunMaxTests()
51 tempByteArray1 = GetRandomByteArray(s_random); in RunMaxTests()
56 tempByteArray2 = GetRandomByteArray(s_random); in RunMaxTests()
76 tempByteArray1 = GetRandomByteArray(s_random); in RunMaxTests()
[all …]
H A Dop_or.cs12 private static Random s_random = new Random(100); field in System.Numerics.Tests.op_orTest
23 tempByteArray1 = GetRandomByteArray(s_random); in RunOrTests()
24 tempByteArray2 = GetRandomByteArray(s_random); in RunOrTests()
31 tempByteArray1 = GetRandomByteArray(s_random, 2); in RunOrTests()
32 tempByteArray2 = GetRandomByteArray(s_random, 2); in RunOrTests()
39 tempByteArray1 = GetRandomByteArray(s_random); in RunOrTests()
44 tempByteArray2 = GetRandomByteArray(s_random); in RunOrTests()
51 tempByteArray1 = GetRandomByteArray(s_random); in RunOrTests()
56 tempByteArray2 = GetRandomByteArray(s_random); in RunOrTests()
75 tempByteArray1 = GetRandomByteArray(s_random); in RunOrTests()
[all …]
H A Dop_xor.cs12 private static Random s_random = new Random(100); field in System.Numerics.Tests.op_xorTest
23 tempByteArray1 = GetRandomByteArray(s_random); in RunXorTests()
24 tempByteArray2 = GetRandomByteArray(s_random); in RunXorTests()
31 tempByteArray1 = GetRandomByteArray(s_random, 2); in RunXorTests()
32 tempByteArray2 = GetRandomByteArray(s_random, 2); in RunXorTests()
39 tempByteArray1 = GetRandomByteArray(s_random); in RunXorTests()
44 tempByteArray2 = GetRandomByteArray(s_random); in RunXorTests()
51 tempByteArray1 = GetRandomByteArray(s_random); in RunXorTests()
56 tempByteArray2 = GetRandomByteArray(s_random); in RunXorTests()
75 tempByteArray1 = GetRandomByteArray(s_random); in RunXorTests()
[all …]
H A Dlog.cs12 private static Random s_random = new Random(100); field in System.Numerics.Tests.logTest
30 tempByteArray1 = GetRandomPosByteArray(s_random, 10); in RunLogTests()
54 tempByteArray1 = GetRandomByteArray(s_random); in RunLogTests()
76 tempByteArray1 = GetRandomByteArray(s_random, 10); in RunLogTests()
77 tempByteArray2 = GetRandomNegByteArray(s_random, 1); in RunLogTests()
79 …e(Double.IsNaN(BigInteger.Log(new BigInteger(GetRandomByteArray(s_random, 10)), -s_random.NextDoub… in RunLogTests()
86 tempByteArray2 = GetRandomPosByteArray(s_random, 1); in RunLogTests()
101 … BigInteger temp = new BigInteger(GetRandomPosByteArray(s_random, s_random.Next(1, 100))); in RunLogTests()
118 tempByteArray2 = GetRandomPosByteArray(s_random, s_random.Next(1, 100)); in RunLogTests()
125 tempByteArray1 = GetRandomPosByteArray(s_random, s_random.Next(1, 100)); in RunLogTests()
[all …]
H A Ddivrem.cs12 private static Random s_random = new Random(100); field in System.Numerics.Tests.divremTest
23 tempByteArray1 = GetRandomByteArray(s_random); in RunDivRem_TwoLargeBI()
24 tempByteArray2 = GetRandomByteArray(s_random); in RunDivRem_TwoLargeBI()
38 tempByteArray1 = GetRandomByteArray(s_random, 2); in RunDivRem_TwoSmallBI()
39 tempByteArray2 = GetRandomByteArray(s_random, 2); in RunDivRem_TwoSmallBI()
53 tempByteArray1 = GetRandomByteArray(s_random); in RunDivRem_OneSmallOneLargeBI()
58 tempByteArray2 = GetRandomByteArray(s_random); in RunDivRem_OneSmallOneLargeBI()
72 tempByteArray1 = GetRandomByteArray(s_random); in RunDivRem_OneLargeOne0BI()
127 tempByteArray1 = GetRandomByteArray(s_random); in RunDivRemTests()
128 tempByteArray2 = GetRandomByteArray(s_random); in RunDivRemTests()
[all …]
H A Dctor.cs12 private static Random s_random = new Random(100); field in System.Numerics.Tests.BigIntegerConstructorTest
279 VerifyCtorSingle((Single)(s_random.Next(0, 100) + s_random.NextDouble())); in RunCtorSingleTests()
285 VerifyCtorSingle(((Single)(s_random.Next(-100, 0) - s_random.NextDouble()))); in RunCtorSingleTests()
291 … VerifyCtorSingle((Single)((Single.MaxValue * s_random.NextDouble()) + s_random.NextDouble())); in RunCtorSingleTests()
297 …VerifyCtorSingle(((Single)((-(Single.MaxValue - 1) * s_random.NextDouble()) - s_random.NextDouble(… in RunCtorSingleTests()
453 VerifyCtorDouble((Double)(s_random.Next(0, 100) + s_random.NextDouble())); in RunCtorDoubleTests()
459 VerifyCtorDouble(((Double)(s_random.Next(-100, 0) - s_random.NextDouble()))); in RunCtorDoubleTests()
465 …VerifyCtorDouble((Double)((Int64.MaxValue / 100 * s_random.NextDouble()) + s_random.NextDouble())); in RunCtorDoubleTests()
471 …VerifyCtorDouble(((Double)((-(Int64.MaxValue / 100) * s_random.NextDouble()) - s_random.NextDouble… in RunCtorDoubleTests()
583 (byte)s_random.Next(0, 29)); in RunCtorDecimalTests()
[all …]
H A Dgcd.cs12 private static Random s_random = new Random(100); field in System.Numerics.Tests.gcdTest
78 tempByteArray1 = GetRandomByteArray(s_random); in RunGCDTests()
79 tempByteArray2 = GetRandomByteArray(s_random); in RunGCDTests()
86 tempByteArray1 = GetRandomByteArray(s_random, 2); in RunGCDTests()
94 tempByteArray1 = GetRandomByteArray(s_random); in RunGCDTests()
99 tempByteArray2 = GetRandomByteArray(s_random); in RunGCDTests()
106 tempByteArray1 = GetRandomByteArray(s_random); in RunGCDTests()
111 tempByteArray2 = GetRandomByteArray(s_random); in RunGCDTests()
136 byte[] x = GetRandomByteArray(s_random); in RunGCDTests()
137 byte[] y = GetRandomByteArray(s_random); in RunGCDTests()
[all …]
H A Dcast_from.cs15 private static Random s_random = new Random(100); field in System.Numerics.Tests.cast_fromTest
24 bigInteger = GenerateRandomBigIntegerLessThan(Byte.MinValue, s_random); in RunByteExplicitCastFromBigIntegerTests()
56 bigInteger = GenerateRandomBigIntegerGreaterThan(Byte.MaxValue, s_random); in RunByteExplicitCastFromBigIntegerTests()
68 bigInteger = GenerateRandomBigIntegerLessThan(SByte.MinValue, s_random); in RunSByteExplicitCastFromBigIntegerTests()
124 bigInteger = GenerateRandomBigIntegerLessThan(UInt16.MinValue, s_random); in RunUInt16ExplicitCastFromBigIntegerTests()
171 bigInteger = GenerateRandomBigIntegerLessThan(Int16.MinValue, s_random); in RunInt16ExplicitCastFromBigIntegerTests()
227 bigInteger = GenerateRandomBigIntegerLessThan(UInt32.MinValue, s_random); in RunUInt32ExplicitCastFromBigIntegerTests()
274 bigInteger = GenerateRandomBigIntegerLessThan(Int32.MinValue, s_random); in RunInt32ExplicitCastFromBigIntegerTests()
330 bigInteger = GenerateRandomBigIntegerLessThan(0, s_random); in RunUInt64ExplicitCastFromBigIntegerTests()
656 value = (Decimal)(100 * s_random.NextDouble() - 100); in RunDecimalExplicitCastFromBigIntegerTests()
[all …]
H A Dremainder.cs13 private static Random s_random = new Random(100); field in System.Numerics.Tests.remainderTest
24 tempByteArray1 = GetRandomByteArray(s_random); in RunRemainderPositive()
25 tempByteArray2 = GetRandomByteArray(s_random); in RunRemainderPositive()
32 tempByteArray1 = GetRandomByteArray(s_random, 2); in RunRemainderPositive()
33 tempByteArray2 = GetRandomByteArray(s_random, 2); in RunRemainderPositive()
40 tempByteArray1 = GetRandomByteArray(s_random); in RunRemainderPositive()
41 tempByteArray2 = GetRandomByteArray(s_random, 2); in RunRemainderPositive()
44 tempByteArray1 = GetRandomByteArray(s_random, 2); in RunRemainderPositive()
45 tempByteArray2 = GetRandomByteArray(s_random); in RunRemainderPositive()
59 tempByteArray1 = GetRandomByteArray(s_random); in RunRemainderNegative()
[all …]
H A Dop_divide.cs12 private static Random s_random = new Random(100); field in System.Numerics.Tests.op_divideTest
23 tempByteArray1 = GetRandomByteArray(s_random); in RunDividePositivenonZero()
24 tempByteArray2 = GetRandomByteArray(s_random); in RunDividePositivenonZero()
31 tempByteArray1 = GetRandomByteArray(s_random, 2); in RunDividePositivenonZero()
32 tempByteArray2 = GetRandomByteArray(s_random, 2); in RunDividePositivenonZero()
39 tempByteArray1 = GetRandomByteArray(s_random); in RunDividePositivenonZero()
40 tempByteArray2 = GetRandomByteArray(s_random, 2); in RunDividePositivenonZero()
43 tempByteArray1 = GetRandomByteArray(s_random, 2); in RunDividePositivenonZero()
44 tempByteArray2 = GetRandomByteArray(s_random); in RunDividePositivenonZero()
58 tempByteArray1 = GetRandomByteArray(s_random); in RunDivideNegative()
[all …]
H A Dop_modulus.cs13 private static Random s_random = new Random(100); field in System.Numerics.Tests.op_modulusTest
24 tempByteArray1 = GetRandomByteArray(s_random); in RunRemainderTestsPositive()
25 tempByteArray2 = GetRandomByteArray(s_random); in RunRemainderTestsPositive()
32 tempByteArray1 = GetRandomByteArray(s_random, 2); in RunRemainderTestsPositive()
33 tempByteArray2 = GetRandomByteArray(s_random, 2); in RunRemainderTestsPositive()
40 tempByteArray1 = GetRandomByteArray(s_random); in RunRemainderTestsPositive()
41 tempByteArray2 = GetRandomByteArray(s_random, 2); in RunRemainderTestsPositive()
44 tempByteArray1 = GetRandomByteArray(s_random, 2); in RunRemainderTestsPositive()
45 tempByteArray2 = GetRandomByteArray(s_random); in RunRemainderTestsPositive()
59 tempByteArray1 = GetRandomByteArray(s_random); in RunRemainderNegative()
[all …]
H A Ddivide.cs12 private static Random s_random = new Random(100); field in System.Numerics.Tests.DivideTest
23 tempByteArray1 = GetRandomByteArray(s_random); in RunDivideTwoLargeBI()
24 tempByteArray2 = GetRandomByteArray(s_random); in RunDivideTwoLargeBI()
38 tempByteArray1 = GetRandomByteArray(s_random, 2); in RunDivideTwoSmallBI()
39 tempByteArray2 = GetRandomByteArray(s_random, 2); in RunDivideTwoSmallBI()
53 tempByteArray1 = GetRandomByteArray(s_random); in RunDivideOneLargeOneSmallBI()
54 tempByteArray2 = GetRandomByteArray(s_random, 2); in RunDivideOneLargeOneSmallBI()
57 tempByteArray1 = GetRandomByteArray(s_random, 2); in RunDivideOneLargeOneSmallBI()
58 tempByteArray2 = GetRandomByteArray(s_random); in RunDivideOneLargeOneSmallBI()
72 tempByteArray1 = GetRandomByteArray(s_random); in RunDivideOneLargeOneZeroBI()
[all …]
H A Dcast_to.cs15 private static Random s_random = new Random(100); field in System.Numerics.Tests.cast_toTest
32 VerifyByteImplicitCastToBigInteger((Byte)s_random.Next(1, Byte.MaxValue)); in RunByteImplicitCastToBigIntegerTests()
48 VerifySByteImplicitCastToBigInteger((SByte)s_random.Next(SByte.MinValue, 0)); in RunSByteImplicitCastToBigIntegerTests()
420 s_random.Next(Int32.MinValue, Int32.MaxValue), in RunDecimalExplicitCastToBigIntegerTests()
421 s_random.Next(Int32.MinValue, Int32.MaxValue), in RunDecimalExplicitCastToBigIntegerTests()
422 s_random.Next(Int32.MinValue, Int32.MaxValue), in RunDecimalExplicitCastToBigIntegerTests()
424 (byte)s_random.Next(0, 29)); in RunDecimalExplicitCastToBigIntegerTests()
441 s_random.Next(Int32.MinValue, Int32.MaxValue), in RunDecimalExplicitCastToBigIntegerTests()
442 s_random.Next(Int32.MinValue, Int32.MaxValue), in RunDecimalExplicitCastToBigIntegerTests()
443 s_random.Next(Int32.MinValue, Int32.MaxValue), in RunDecimalExplicitCastToBigIntegerTests()
[all …]
H A Dpow.cs12 private static Random s_random = new Random(100); field in System.Numerics.Tests.powTest
29 tempByteArray1 = GetRandomPosByteArray(s_random, 1); in RunPowPositive()
30 tempByteArray2 = GetRandomByteArray(s_random, 2); in RunPowPositive()
37 tempByteArray1 = GetRandomPosByteArray(s_random, 1); in RunPowPositive()
38 tempByteArray2 = GetRandomByteArray(s_random); in RunPowPositive()
45 tempByteArray1 = GetRandomByteArray(s_random); in RunPowPositive()
53 tempByteArray1 = GetRandomPosByteArray(s_random, 2); in RunPowPositive()
72 String randBigInt = Print(GetRandomByteArray(s_random)); in RunPowAxiomXPow1()
89 String randBigInt = Print(GetRandomByteArray(s_random)); in RunPowAxiomXPow0()
162 tempByteArray1 = GetRandomNegByteArray(s_random, 2); in RunPowNegative()
[all …]
H A Dparse.cs15 private readonly static Random s_random = new Random(100); field in System.Numerics.Tests.parseTest
46 VerifyDefaultParse(s_random); in RunParseToStringTests()
49 VerifyNumberStyles(NumberStyles.None, s_random); in RunParseToStringTests()
56 VerifyNumberStyles(NumberStyles.AllowThousands, s_random); in RunParseToStringTests()
57 VerifyNumberStyles(NumberStyles.AllowExponent, s_random); in RunParseToStringTests()
62 VerifyNumberStyles(NumberStyles.Integer, s_random); in RunParseToStringTests()
63 VerifyNumberStyles(NumberStyles.HexNumber, s_random); in RunParseToStringTests()
64 VerifyNumberStyles(NumberStyles.Number, s_random); in RunParseToStringTests()
65 VerifyNumberStyles(NumberStyles.Float, s_random); in RunParseToStringTests()
66 VerifyNumberStyles(NumberStyles.Currency, s_random); in RunParseToStringTests()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Numerics.Vectors/tests/
H A DUtil.cs11 private static Random s_random = new Random(); field in System.Numerics.Tests.Util
14 s_random = new Random(seed); in SetRandomSeed()
27 values[g] = (float)(s_random.NextDouble() * 99 + 1); in GenerateRandomFloats()
42 values[g] = s_random.Next(1, 100); in GenerateRandomInts()
57 values[g] = s_random.NextDouble() * 99 + 1; in GenerateRandomDoubles()
72 values[g] = s_random.Next(1, 100) * (long.MaxValue / int.MaxValue); in GenerateRandomLongs()
90 var randomRange = s_random.Next(min, max);
/dports/math/ogdf/OGDF/src/ogdf/basic/
H A Dbasic.cpp128 static std::mt19937 s_random; variable
139 return 7*s_random()+3; // do not directly return seed, add a bit of variation in randomSeed()
144 s_random.seed(val); in setSeed()
156 return dist(s_random); in randomNumber()
168 return dist(s_random); in randomDouble()
/dports/devel/log4net/log4net-1.2.10/src/Util/PatternStringConverters/
H A DRandomStringPatternConverter.cs52 private static readonly Random s_random = new Random(); field in log4net.Util.PatternStringConverters.RandomStringPatternConverter
110 lock(s_random) in Convert()
114 int randValue = s_random.Next(36); in Convert()

123