function DatabaseConnection_sqlite::sqlFunctionRand

SQLite compatibility implementation for the RAND() SQL function.

File

includes/database/sqlite/database.inc, line 231

Class

DatabaseConnection_sqlite
Specific SQLite implementation of DatabaseConnection.

Code

public function sqlFunctionRand($seed = NULL) {
    if (isset($seed)) {
        mt_srand($seed);
    }
    return mt_rand() / mt_getrandmax();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.