carbon random future date

PHP
Carbon::today()->subDays(rand(0, 365));
Source

Also in PHP: