php 의 난수 생성기
you can use rand() function for that in php.
Example:
Generate random numbers between 1 to 50
<?php
echo rand(1,50);
?>
임의의 날짜를 생성하는 php 스크립트
//Generate a timestamp using mt_rand.
$timestamp = mt_rand(1, time());
//Format that timestamp into a readable date string.
$randomDate = date("d M Y", $timestamp);
//Print it out.
echo $randomDate;