an child handling random flag