N
nntp
Let's say I have two arrays, one has N elements and the other has M. Both N
and M vary. I want to merge the two like you shuffle two decks of cards.
from
1 2 3 4 5 6 7 8
a b c d e f g h
to
12a34bc5def78gh
Both still need to be in the original order.
The second part of the question is when they are not arrays but two long
strings, I need to randomly select the N break points (break point must be a
whitespace) of string A. How do I do this?
and M vary. I want to merge the two like you shuffle two decks of cards.
from
1 2 3 4 5 6 7 8
a b c d e f g h
to
12a34bc5def78gh
Both still need to be in the original order.
The second part of the question is when they are not arrays but two long
strings, I need to randomly select the N break points (break point must be a
whitespace) of string A. How do I do this?