<-- Previous || Up || Next -->

Random Capitalize Function
String Extras Class

Public Function RandomCapitalize( _
    ByVal vValue As Variant _
    ) As Variant

Randomly capitalizes the characters within a string.

Examples:
    Rnd(-1) = 0.224007
    RandomCapitalize("This is a test.") = "this Is A teSt."
    RandomCapitalize("SAMPLE TEXT") = "sAMPlE tEXT"
Note: The call to the Visual Basic Rnd function in the above example seeds the Visual Basic random number generator so that the sample results can be reproduced. There is generally no need to call the Rnd function within your programs since Entisoft Tools initializes the Visual Basic random number generator once with "Randomize" statement.
See also:
    RandomValues Class
    CapitalizeLike Function
    SwapUpperAndLowerCase Function
vvstValue: String whose characters should be capitalized in a random way. Function returns Null if vValue is Null or cannot be fixed up to a String.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.