Copy from/to pointer.
Use random generator for seed.