how to add autometic number generting in php

Recommended Answers

Do you mean random numbers? Explain a little/lot more.

Jump to Post

All 6 Replies

Do you mean random numbers? Explain a little/lot more.

<?php
$min = 0;
$max = 100;
$random_number = mt_rand($min, $max);
printf('Your random number is %d', $random_number);

or simply

<?php
echo mt_rand();
?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.