Nielsen interview question

questions on sql using rand functions.