본문으로 건너뛰기
Dart에서는 제공하지 않습니다이 함수는 Dart 패키지에 없습니다. 아래 문서는 JavaScript, Python 기준입니다.

strBlindRandom

임의의 위치에 있는 문자열을 지정된 문자 수(기본값 1)로 대체합니다(기본값 *).

Parameters

이름타입필수기본값
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