I am using bookshelf.js to develop a project using mariaDB. I want to get my post items ordered randomly. I found this solution works for knex.js
knex('posts').select('id', 'text')
.orderByRaw('RAND()')
.limit(100)
But I want to do the same thing with Bookshelf.