add rand() to random() functionality 

Issue #1382 - proposed fix

https://github.com/mybb/mybb/issues/1382