multiple random variables version 1