Skip to content
Not available in DartThis function is not part of the Dart package. The documentation below is for JavaScript and Python.

strBlindRandom

Replace strings at random locations with a specified number of characters (default 1) with characters (default *).

Parameters

NameTypeRequiredDefault
strstringstr
blindLengthnumberint
blindStrstringstr'*'

Returns

string

str

Examples

javascript
strBlindRandom('hello', 2, '#'); // e.g. '#el#o'
python
strBlindRandom('hello', 2, '#')  # e.g. 'he##o'
strBlindRandom('hello', 2)  # e.g. '*ell*'

Released under the MIT License