strBlindRandom
Replace strings at random locations with a specified number of characters (default 1) with characters (default *).
Parameters
| Name | Type | Required | Default |
|---|---|---|---|
str | stringstr | ● | – |
blindLength | numberint | ● | – |
blindStr | stringstr | – | '*' |
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*'