added random relationship generator.