ctitle function
return a random chinese title.
while max
is null, min
is the length of result.
or the length is random between min
to max
.
Implementation
String ctitle({int min = 3, int? max = 7}) {
final length = max == null ? min : integer(min: min, max: max);
final stringBuffer = StringBuffer();
for (var i = 0; i < length; i++) {
stringBuffer.write(cword());
}
return stringBuffer.toString();
}