Add random number generate function rand in script engine.
Authored by: utunnels 2007-05-18
Parent: [r880]
Child: [r882]