Make me a fake loader Make a fake loader just like this :
 

Parameters :


Display loading (space) one of these cyclically-\|/ (space) (percentage counter from 0-100) then a %.  
The percentage counter is supposed to increment by 1 every time the display changes.  
The time taken by counter to jump to next iteration is random. Any kind of random will do as long as the function/method is capable of generating all random integers having probability > 0 in range 1&lt;= ms &lt;=750 here ms being time in milliseconds.  
Start at loading - 0 %.  
End at loading - 100 %.  
NO INPUT is required.  
submit a full program or function or whatever similar.   


The code that I used :  

C++

#include&lt;stdio.h&gt;
#include&lt;time.h&gt;
#include&lt;windows.h&gt;

int main()
{
    srand(time(NULL));
    char a[15],b[]="-\\|/";
    int i=0,j=0,ms;
    while(j&lt;101)
    {
        (i&lt;3)?i++:i=0;
        wsprintf(a,"loading %c %d ",b[i],j++);
        printf(a);puts("%");
            //This part is to make the output look cool
        switch(rand()%9)
        {
            case 0:ms=1;break;
            case 1:ms=2;break;
            case 2:ms=5;break;
            case 3:ms=10;break;
            case 4:ms=15;break;
            case 5:ms=20;break;
            case 6:ms=25;break;
            case 7:ms=50;break;
            case 8:ms=500;
        }
        Sleep(ms);  //Otherwise this is supposed to be random
        if(j&lt;101)   //like this Sleep(rand()%750+1);
        system("cls");
    }
}


Winner


the code with least bytes wins.
Powershell, 71 68 65 Bytes

Similar to https://codegolf.stackexchange.com/a/101357/59735

Saved 3 bytes by not being an idiot (left the ... on loading)

-3 thanks to VisualMelon

changed 750 -> 751 to make sure 750 is included.

0..100|%{cls;"loading $("|/-\"[$_%4]) $_ %";sleep -m(random 751)}


Explanation:

0..100|%{                                  #For range 0-100...
    cls                                    #Clear Display
    "loading $("|/-\"[$_%4]) $_ %"    #Display the current string
    sleep -m(random 750)                  #Sleep random ms up to 750
}


Updated gif