Added weighted random distributor functionality.

It's partially working, partially broken and needs more work.
Weighted random is finished.
Deleted unnecessary binding pry debug line.
Rebase work to implement weighted random with MKBs code.