Implementing unitary 2-designs using random diagonal-unitary matrices