Article View: pl.comp.lang.php
Article #1662Re: losowe wyswietlanie obrazka
From: Rafal Neumann
Date: Thu, 30 Aug 2001 11:24
Date: Thu, 30 Aug 2001 11:24
15 lines
1349 bytes
1349 bytes
Użytkownik "jcebo" <jcebo@poczta.onet.pl> napisał w wiadomości
news:9mj5mb$bd0$1@news.onet.pl...
> lepiej tak:
> <?
> mt_srand(time());
> $liczba_obrazkow = 10;
> $liczba = mt_rand(1,$liczba_obrazkow);
> print("<img src=" . $liczba . ".jpg>");
> ?>
> mt_sradn i mt_rand są szybsze.
a wiesz o ile? bo roznica moze byc ulamkach czesci sekundy
Rafal Neumann
Technical Details
Message-ID:
<9ml7n8$r96$2@news.tpi.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.man.poznan.pl!news.astercity.net!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mailReferences:
<9miqru$g85$1@news.tpi.pl> <9miv0u$4eo$1@news.onet.pl> <9mj5mb$bd0$1@news.onet.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.man.poznan.pl!news.astercity.net!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail From: "Rafal Neumann" <neumann@skrzynka.pl> Newsgroups: pl.comp.lang.php Subject: Re: losowe wyswietlanie obrazka Date: Thu, 30 Aug 2001 13:24:42 +0200 Organization: tp.internet - http://www.tpi.pl Lines: 17 Message-ID: <9ml7n8$r96$2@news.tpi.pl> References: <9miqru$g85$1@news.tpi.pl> <9miv0u$4eo$1@news.onet.pl> <9mj5mb$bd0$1@news.onet.pl> NNTP-Posting-Host: pa67.ustka.sdi.tpnet.pl X-Trace: news.tpi.pl 999170599 27942 213.77.166.67 (30 Aug 2001 11:23:20 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: 30 Aug 2001 11:23:20 GMT X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit