Ok, so this is code:
\begin{table}[t]
\caption{random123}
\label{name}
\begin{tabular}{|r|l|}
\hline
test1 & test2\\
\hline
test3 & test4 \\
\hline
\end{tabular}
\end{table}
And this is how it looks like and what I want to achieve:

Any ideas how can I achieve similar result?
Thanks in advance for help!