Title: Warning: array_rand() [function.array-rand]: Second argument has to be between
Last modified: August 21, 2016

---

# Warning: array_rand() [function.array-rand]: Second argument has to be between

 *  Resolved [Pushkar Gaikwad](https://wordpress.org/support/users/pushkar-gaikwad/)
 * (@pushkar-gaikwad)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/warning-array_rand-functionarray-rand-second-argument-has-to-be-between/)
 * Hi, CTA looks to be great for inbound marketing and I am trying to integrate 
   with our blog at [http://www.inboundio.com/blog](http://www.inboundio.com/blog)
   but after creating the CTA, I am getting this error
 * `Warning: array_rand() [function.array-rand]: Second argument has to be between
   1 and the number of elements in the array in /home/xxxx/public_html/blog/wp-content/
   plugins/call-to-action/call-to-action-display.php on line 72`
 * I am sure I am missing something very minor, any idea what ?
 * [http://wordpress.org/plugins/call-to-action/](http://wordpress.org/plugins/call-to-action/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Pushkar Gaikwad](https://wordpress.org/support/users/pushkar-gaikwad/)
 * (@pushkar-gaikwad)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/warning-array_rand-functionarray-rand-second-argument-has-to-be-between/#post-4422032)
 * ALright got it, after creating CTA, you do have to select Call to action display
   option which I missed! Working perfectly now, Thanks for the nice plugin

Viewing 1 replies (of 1 total)

The topic ‘Warning: array_rand() [function.array-rand]: Second argument has to be
between’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/call-to-action.svg)
 * [Call to Action](https://wordpress.org/plugins/call-to-action/)
 * [Support Threads](https://wordpress.org/support/plugin/call-to-action/)
 * [Active Topics](https://wordpress.org/support/plugin/call-to-action/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/call-to-action/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/call-to-action/reviews/)

## Tags

 * [inbound](https://wordpress.org/support/topic-tag/inbound/)

 * 1 reply
 * 1 participant
 * Last reply from: [Pushkar Gaikwad](https://wordpress.org/support/users/pushkar-gaikwad/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/warning-array_rand-functionarray-rand-second-argument-has-to-be-between/#post-4422032)
 * Status: resolved