Advertisement
Guest User

Untitled

a guest
May 28th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1.  
  2. hint "INIT";
  3.  
  4. sleep 10;
  5.  
  6. _i = 0;
  7. _probNull = 0.2;
  8. _array = ["adam_random_1", "adam_random_2", "adam_random_3"];
  9.  
  10. While {_i<1} Do {
  11.  
  12. HINT "IN LOOP";
  13.  
  14. sleep 10;
  15.  
  16. //Testing for no string
  17. _rNumber = random 1;
  18. If (_rNumber > _probNull) Then {
  19.  
  20. HINT "NOT NULL";
  21.  
  22. //Picking line from array
  23. _rLine = _array select floor random count _array;
  24.  
  25. adam groupRadio _rLine;
  26.  
  27. };
  28.  
  29. sleep 10;
  30. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement