Added rand draft code