[ create a new paste ] login | about

Link: http://codepad.org/SfdUAjoo    [ raw code | output | fork ]

IkimashoZ - PHP, pasted on Dec 31:
1
2
3
4
5
6
7
8
9
10
<?php

  $array = array();
  for($x=0; $x<5; $x++) {
    $array[] = rand(1, 5);
  }

  print_r($array);

?>


Output:
1
2
3
4
5
6
7
8
Array
(
    [0] => 5
    [1] => 2
    [2] => 2
    [3] => 3
    [4] => 2
)


Create a new paste based on this one


Comments: