1
Samik
How to get a random number
  • 2005/5/17 10:03

  • Samik

  • Just popping in

  • Posts: 17

  • Since: 2005/3/4 1


Here a tips to get a random number with smarty

How it works:
Change in the index page the 'n' with the max number of your random range

<{assign var='random' value=1|rand:n}>

It would assign a random number between 1 and n to the var 'random'


Bye.


-------
Samik - SamikLand

Login

Who's Online

788 user(s) are online (65 user(s) are browsing Support Forums)


Members: 0


Guests: 788


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits