public void copyRandom(RandomListNode head) {
        while (head != null) {
            RandomListNode random = head.random;
            RandomListNode head1 = head.next;
            if (random != null) {
                head1.random = random.next;
            }
            head = head.next.next;
        }
    }