generate random tables