Get Started

Upgrade

Where Syntax

Query

Aggregation

Fetch

Transaction

Advanced

Raw object

PDO object

Debug

Information

version: 1.6

rand

Fetch randomized data

rand($table, $column, $where)
rand($table, $join, $column, $where)
Return: [array]
$data = $database->rand("account", [
	"user_name",
	"email"
], [
	"user_id[>]" => 100
]);

// $data = array(
// 	[0] => array(
// 		"user_name" => "foo",
// 		"email" => "foo@medoo.in"
// 	),
// 	[1] => array(
// 		"user_name" => "cat",
// 		"email" => "cat@medoo.in"
// 	)
// )