Random Values Class
Entisoft Tools 2.0 Object Library
Version 2.1 Build 208
<-- Previous || Index || Main || Topics || Next -->Declarations Section, RandomizeAgain Sub, RandomDoubleWithinRange Function, RandomDoubleWithinExpRange Function, RandomIntegerWithinRange Function, RandomIntegerWithinRangeVerify Sub, RandomIntegerWithinExpRange Function, RandomIntegerWithinExpRangeTest Sub, RandomLongWithinRange Function, RandomLongWithinRangeVerify Sub, RandomLongWithinRangeFast Function, RandomLongWithinExpRange Function, RandomLongArg Function, RandomLongGenerator Function, RandomLongGeneratorSample Sub, RandomString Function, RandomStringFast Function, RandomVariant Function, RandomVariantSample Sub, RndBitsVerify Sub, RndBytesVerify Sub, RndVerify Sub
- Declarations Section
- Randomize Again Sub
- Execute the Visual Basic Randomize statement to reinitialize the random number generator Note that the random number generator is initialized once when Entisoft Tools starts.
- Random Double Within Range Function
- "Random Double Within Range" Returns a random Double number between vLower and vUpper inclusive. Random numbers will be distributed evenly within the range.
- Random Double Within Exp Range Function
- "Random Double Within Exponential Range" Returns a random Double number between vLower and vUpper inclusive. The randoms are generated with a frequency comparable to the area under an exponential curve, except that more numbers are generated near the bottom of the range instead of near the top of it.
- Random Integer Within Range Function
- Returns a random Integer number between vLower and vUpper inclusive. Random numbers will be distributed evenly within the range.
- Random Integer Within Range Verify Sub
- Check to see how many of the valid integers are generated by our random integer generator. Note that this function does not check to see if the random number 0 (zero) is generated.
- Random Integer Within Exp Range Function
- "Random Integer Within Exponential Range" Returns a random Integer number between vLower and vUpper inclusive. The randoms are generated with a frequency comparable to the area under an exponential curve, except that more numbers are generated near the bottom of the range instead of near the top of it.
- Random Integer Within Exp Range Test Sub
- Test the results from the RandomIntegerWithinExpRange function. Function prints any errors within the Debug window.
- Random Long Within Range Function
- Returns a random Long (integer) number between vLower and vUpper inclusive. Random numbers will be distributed evenly within the range.
- Random Long Within Range Verify Sub
- Verify the results of the RandomLongWithinRange function.
- Random Long Within Range Fast Function
- Returns a random Long (integer) number between vLower and vUpper inclusive. Random numbers will be distributed evenly within the range. Faster version of the RandomLongWithinRange function which uses the Visual Basic Rnd function and avoids argument fix-up and validation overhead.
- Random Long Within Exp Range Function
- "Random Long Within Exponential Range" Returns a random Long (integer) number between vLower and vUpper inclusive. The randoms are generated with a frequency comparable to the area under an exponential curve, except that more numbers are generated near the bottom of the range instead of near the top of it.
- Random Long Arg Function
- "Random Long With Argument" Generates a random Long (integer) number whose value is between MaxInteger + 1 and MaxLong - 1 inclusive. Forces the Microsoft Access Query optimizer to execute this function call for each row of the SQL UPDATE statement in which it is normally used; see below.
- Random Long Generator Function
- "Random Long Number Generator" Generate a series of random numbers with OR without replacement and store them in a Variant array. Random numbers will be distributed evenly within the range. Returns True upon success and False upon failure.
- Random Long Generator Sample Sub
- Print a sample of the RandomLongGenerator function.
- Random String Function
- Returns a random string whose length is between vMinLength and vMaxLength characters inclusive and which will be composed of the characters in string vAlphabet.
- Random String Fast Function
- Returns a random string whose length is between vMinLength and vMaxLength characters inclusive and which will be composed of the characters in string vAlphabet. Faster version of the RandomString function which has restrictive argument types and no argument validation.
- Random Variant Function
- "Random Value" or "Random Value Of Type" Returns a randomly-selected value of some type. The type can be specified or it too will be selected randomly if not specified.
- Random Variant Sample Sub
- Print some samples of the RandomVariant function.
- Rnd Bits Verify Sub
- "Random Bits Verify" Print a frequency count of the bits within values generated by the Visual Basic Rnd function.
- Rnd Bytes Verify Sub
- "Random Bytes Verify" Print a frequency count of the bytes within values generated by the Visual Basic Rnd function.
- Rnd Verify Sub
- "Random Verify" Review of the built-in Rnd function which indicates the bits of the return value that never differ.
This Windows-based ActiveX DLL provides many useful routines through its function-bearing and data structure classes. Consult the Help file for more information, or call us at 1-310-472-3736. For the latest news and files, visit our home page on the World Wide Web: http://www.entisoft.com
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.