added random closes #1154