Knowing that VIC was a "spy cipher" it is unlikely that the agents used a cryptographic device to genreate the 5 digit number but how did they do it?
2 Answers
In the VIC cipher, that significant five-digit number was created by the user when doing the encryption. It was surely made on the spur of the moment without equipment. As you remarked, these people were spies, and they would not have wanted to get caught with some strange device.
The CIA's online library does not mention the five-digit number as a value that the user had to memorize. The agent already had four mnemonic keys stored in his or her mind:
1. a date (in Russian this would be day/month/year; six digits)
2. a snippet of a popular Russian song (20 characters long)
3. the user's personal identification number
4. a Russian word (e.g., the word for "snowfall")
I do not know for sure, but I think it is most likely that agents came up with their own "random" number out of their own heads. One, admittedly thin, piece of evidence might be that the Russians were generating "one-time pads" at that time out of their own heads by pecking at a typewriter--and keys generated in such manner were considered "random" enough to encrypt important traffic.

- 3,132
- 3
- 18
- 65
Write the numbers 0 to 9 on slips of paper and draw them from a hat.

- 25
- 2
-
2The system has auto-flagged this answer as low-quality due to its length. Could you please provide a citation or reference to support the claim that this is what spies using the VIC cipher actually did? (As the question is not what could they do, but what did they do) – Ella Rose Feb 22 '19 at 01:43
At last, just for fun: look at the die, without throwing it. Then look at your clock, the last digit of the seconds. Add one. 0 tosses.
see at Math How to generate a random number between 1 and 10 with a six-sided die? – kelalaka Feb 20 '19 at 22:05