Creating random graph