Function to generate array of connections

User specifies probability of connection represented by a one (if
connected) and zero (if not connected).