randoms method

  1. @override
Future<List<T>> randoms(
  1. int count, [
  2. String? tableName
])
override

随机查询一组数据

Implementation

@override
Future<List<T>> randoms(int count, [String? tableName]) async {
  List<T>? items = await query(tableName: tableName, orderBy: "RANDOM()", limit: count);
  return items;
}