Pepe, 25 bytes
Pepe is a programming language made by user Soaku.
REeErEErReEEreeEREEeEEree
Explanation:
REeErEErReEEreeEREEeEEree -# full program
REeE -# input as num, in stack 1
rEE -# create loop in stack 2 with name 0
rReEE - # - output and preserve the number in stack 1
reeE - # - output a newline "\n"
REEeEE - # - random number by 0 to input
ree -# goto loop with name 0 if stack 1 is not equal
to stack 2