#Octave, 122 120 119 108 bytes
Octave, 122 120 119 108 bytes
I misread the challenge and created an infinite loader that restarted at 0 once it passed 100. Making it into a one time only loader:
a='\|/-';for i=0:100;clc;disp(['Loading ',a(1),' ',num2str(i),' %']);a=a([2:4,1]);pause(0.749*rand+.001);end
Circulating a
, a=a([2:4,1])
was flawr's idea here. Also, saved 2 bytes by skipping the parentheses after rand
thanks to MattWH.