Friday 28 February 2014
How to Create Randon Number in Magento?
Hello, friends
In magento it is possible that the we are generating Random number through the following one line code:
Use getRandomString() method and generating random number. In getRandomString() method we pass the number till we get the random number from to 0.
Ex : if we pass the 5 number in gerRandomString() method then it will fetch rendom number from 0 to 5.
In magento it is possible that the we are generating Random number through the following one line code:
Use getRandomString() method and generating random number. In getRandomString() method we pass the number till we get the random number from to 0.
Ex : if we pass the 5 number in gerRandomString() method then it will fetch rendom number from 0 to 5.
Subscribe to:
Posts
(
Atom
)