fork download
  1. import std.stdio;
  2. import std.random;
  3.  
  4. void main()
  5. {
  6. int[] arr;
  7.  
  8. foreach (i; 0 .. 100)
  9. arr ~= uniform(0, 500);
  10.  
  11. writeln(arr);
  12. }
Success #stdin #stdout 0s 3900KB
stdin
Standard input is empty
stdout
[224, 303, 213, 429, 176, 325, 499, 69, 364, 394, 380, 399, 283, 229, 196, 497, 109, 374, 61, 9, 449, 173, 434, 154, 86, 367, 146, 203, 367, 437, 171, 57, 265, 137, 463, 165, 213, 285, 395, 418, 123, 387, 178, 128, 274, 303, 472, 69, 191, 217, 166, 63, 81, 2, 431, 483, 56, 400, 151, 384, 379, 233, 469, 125, 167, 389, 186, 175, 48, 488, 218, 170, 168, 468, 342, 109, 206, 350, 8, 74, 87, 453, 313, 153, 396, 45, 430, 45, 265, 473, 95, 199, 400, 147, 449, 438, 401, 366, 475, 67]