View Single Post
Old 12-04-2012, 06:41 AM  
scouser
marketer.
 
Industry Role:
Join Date: Aug 2006
Location: bcn
Posts: 2,280
yea ive been meaning to have a proper thing to do this for ages. ive always figured if manually entering posts its quicker to run a script to randomly change the date than to do it on each post.

it doesn't uniformly space them out. it is does something like this (pseudo, not actually from the source)

foreach($post ) {
$rand = rand($min,$max); // $min can be -, either can be 0... but not both
$plus_or_minus = $rand > 0 ? '-' : '+';
set date = strtotime($plus_or_minus . ' ' . $rand . ' days')
}
scouser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote