You need to sign in to do that
Don't have an account?
srikanth julakanti
generate random number using vf and controller
i want 2 knw how to generate random number using vf and controller plz can anyone suggest me syntax r ping some code advance thanks 2 all
Hope this link will help you
https://developer.salesforce.com/blogs/developer-relations/2013/07/selecting-random-numbers-and-records-on-the-force-com-platform-part-1.html
Mark this as best answer if its helps.
All Answers
https://success.salesforce.com/answers#!/feedtype=SINGLE_QUESTION_DETAIL&id=90630000000ghFcAAI
Hope this link will help you
https://developer.salesforce.com/blogs/developer-relations/2013/07/selecting-random-numbers-and-records-on-the-force-com-platform-part-1.html
Mark this as best answer if its helps.
There is a couple of ways to generate random number . you want to use Vf and Controller so here is Apex code so you can create a class with this code and call it in controller.
http://www.cloudsuccess.com/blog/generating-random-numbers-in-apex-force-com/
https://developer.salesforce.com/blogs/developer-relations/2013/07/selecting-random-numbers-and-records-on-the-force-com-platform-part-1.html
using a formula field to generate random numbers in Salesforce
http://sfdcinsea.wordpress.com/2014/03/24/using-a-formula-field-to-generate-random-numbers-in-salesforce/