Two-way Tables and Distribution of Random Variables