Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,995 questions

51,940 answers

573 users

How to generate 3 digits random numbers in PHP

1 Answer

0 votes
for ($i = 0; $i < 30; $i++) {
    echo rand(100, 1000) . "<br />"; 
}
 
 
 
   
/*
run:
        
372
484
498
594
855
952
544
623
313
902
624
942
716
594
860
101
140
645
425
323
569
808
798
406
184
588
544
347
218
599
 
*/

 



answered Jun 21, 2019 by avibootz

Related questions

2 answers 176 views
1 answer 130 views
1 answer 160 views
1 answer 104 views
1 answer 139 views
1 answer 121 views
2 answers 175 views
...