spoks Posted December 15, 2003 Report Share Posted December 15, 2003 (edited) "viss" ir aprakstīts šeit Sorii, brobza vairs nav aktuaala, else pietruuka. Edited December 15, 2003 by spoks Link to comment Share on other sites More sharing options...
Roze Posted December 15, 2003 Report Share Posted December 15, 2003 Shitaa vari gjenereet arii vairaak kaa 3 (pie esoshajiem nosacijumiem max(10)) random ciparus noraadot tos for() ciklaa.. <? $arr = array(); for($i=1;$i<4;$i++) { $r = rand(1,10); while(in_array($r,$arr)) { $r = rand(1,10); } $arr[$i] = $r; } print_r($arr); ?> Link to comment Share on other sites More sharing options...
jb4 Posted December 15, 2003 Report Share Posted December 15, 2003 ciparīšiem labāk būs ar rand(0,9) p.s. Roze, man šodien ir kašķīgais noskaņojiens ;] Link to comment Share on other sites More sharing options...
Roze Posted December 15, 2003 Report Share Posted December 15, 2003 A taa jau vairs nav mana dariishana.. spoks gribeeja rand(1,10) un saki to vinjam :) 'ja nej vinovat un sam prishol' Link to comment Share on other sites More sharing options...
spoks Posted December 16, 2003 Author Report Share Posted December 16, 2003 tnx, roze, buusim izmantot ;) Jb4: vajag bez 0 :P Link to comment Share on other sites More sharing options...
Recommended Posts