Support flag=random string