#!/bin/bash

N=8
R=10

# reassign to command-line parameters:
set -- $N $R

seq $2|shuf -n$1