fix StringObject::rand()