What would be a good way to generate 7 unique random numbers between 1 and 10. I can\'t have any duplicates. I could write a chunk of PHP to do this (using rand() and pushin
Simple one-liner:
print_r(array_rand(array_fill(1, 10, true), 7));