I am facing an issue in understanding the following line from the pseudocode of the DDPG algorithm
Sample a random minibatch of $N$ transitions $(s_i, a_i, r_i, s_{i+1})$ from $R$
Here $N$ is a hyperparameter that is equal to the number of transitions or samples that need to be present in the minibatch.
Traditionally, we take a minibatch of samples from a dataset, which contains all samples, and pass them to a neural network, but if we observe the DDPG pseudocode, we are storing transition after transition into the buffer $R$. So, I think, it needs several steps before sampling from the buffer $R$. But, if we observe the pseudocode, it says that we need to sample from the first timestep of the first episode.
How is it possible? Where am I missing?