Added random scheduler.

Addreses issue #24.