some authors call it tying up the story or somesuch, where you connect loose ends, up to that moment you let the story write itself
which is why Oda likely does throw dice or random number generator and makes up his number puns to tell the story
much of his characters are inspired from elsewhere anyway
Oda never wrote the story, fate itself did, he just interpreted it and added his own headcanon to One Piece