[chef] how to generate a random integer in a template.erb file


Chronological Thread 
  • From: David Montgomery < >
  • To:
  • Subject: [chef] how to generate a random integer in a template.erb file
  • Date: Thu, 14 Feb 2013 02:41:33 +0800

Hi,

I am not a ruby expert but in a template I need to generate a random integer e.g. between 0 and 10000.

How would I do that?

thanks



Archive powered by MHonArc 2.6.16.

§