-3

I want to build a random and unique strings using 3 random chars from these chars-bank: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890

How can I calculate the unique (without repetitions) combinations?

Broshi
  • 3,334
  • 5
  • 37
  • 52

1 Answers1

0
  • 62^3 = 238,328 with repetitions
  • 62 x 61 x 60 = 226,920 without
Pignic
  • 499
  • 3
  • 12
  • not sure I understood your answer, and what if I want a length of 4? you just do 62x61x60x59.. ? – Broshi Jun 03 '16 at 20:55
  • exactly ! But I don't know why you put a "php" tag on your question, this is more "mathematics" – Pignic Jun 03 '16 at 20:57