csaki

virus download

Sep 13th, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.61 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading;
  6.  
  7. namespace random_loading
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Thread.Sleep(300);
  14.             Console.WriteLine("Connecting, it may take a few seconds ...");
  15.             Thread.Sleep(4000);
  16.             Console.WriteLine("Connection established!");
  17.             Thread.Sleep(1000);
  18.             Console.Clear();
  19.             Thread.Sleep(300);
  20.             Random rand = new Random();
  21.             int rand2 = rand.Next(1, 7);
  22.             for (int i = 1; i < 101; i = i + rand2)
  23.             {
  24.                 int rand1 = rand.Next(0, 300);
  25.                 rand2 = rand.Next(1, 7);
  26.                 Console.Clear();
  27.                 if (i >= 96)
  28.                 {
  29.                     i = 100;
  30.                 }
  31.                 Console.WriteLine("Downloading virus: {0}%", i);
  32.                 Thread.Sleep(rand1);
  33.             }
  34.             Thread.Sleep(400);
  35.             Console.WriteLine("Done!");
  36.             Thread.Sleep(700);
  37.  
  38.             for (int i = 1; i < 101; i = i + rand2)
  39.             {
  40.                 int rand1 = rand.Next(0, 300);
  41.                 rand2 = rand.Next(1, 7);
  42.                 Console.Clear();
  43.                 if (i >= 96)
  44.                 {
  45.                     i = 100;
  46.                 }
  47.                 Console.WriteLine("Installing: {0}%", i);
  48.                 Thread.Sleep(rand1);
  49.             }
  50.             Thread.Sleep(400);
  51.             Console.WriteLine("Done too!");
  52.             Thread.Sleep(300);
  53.         }
  54.     }
  55. }
Add Comment
Please, Sign In to add comment