Skip to content

Instantly share code, notes, and snippets.

@dlugs
Created January 25, 2012 11:15
Show Gist options
  • Save dlugs/1675856 to your computer and use it in GitHub Desktop.
Save dlugs/1675856 to your computer and use it in GitHub Desktop.
simulate stock
$t=time()/60/60/24;
$a=100;
$qty = $y=abs(round(1000*($t/$a-floor($t/$a+1/2))+2)-1000) + abs(round(sin($_product->getId())*1000));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment