How to randomly chose function question

Discussion in 'PHP' started by Ritu, Nov 11, 2007.

  1. #1
    Lets say, that my website have 100 pages, and I have 2 scripts (functions)
    function1()
    function2()

    And now I want run of each of those websites another function.
    So, for example pages 2,4,30,77,90... will use function1() and other sites will use function2().

    Would be nice, if function won't change in next page load, so if page 5 will use function1() this page will not use function2() in future.

    Could somebody code it for me? :)
     
    Ritu, Nov 11, 2007 IP