rg_tm function

Random binary and weighted two-mode network