I write application on scala and play framework with slick for db. I want to select random row from my table on db side. Something like this:
val items = TableQuery[ItemTable]
val db = Database.forConfig("db.default")
def getRandom: Item = ???
Any ideas? My current implementation is select all as list and chose random on scala code.