dd if=/dev/urandom of=a.log bs=1M count=2
Question: if this code ^ gives me random numbers, how can I get random non-words (unintelligible) such as “hgcqw”.
Question 2: Can the shuf command be used in conjunction with the dd command?
Thanks!
6/21 Update. (Father's day)
@ Serg My goal was to obtain numbers at first. Say, random two digits numbers from 01-100. Give the command and run the code. Eventually it will give me 14, 17, 21, 35 ( I am making up what random numbers I get). Next, I wanted to get an average of those numbers. In this case the average would be 21.75 (22). The goal would be to stop the loop until it finds a specific average I was looking for. In this case it would be 25. My second goal was to get random words and then get a count of what words were used.
@ terdon
A word is "buck", "duck," or "good old luck." Basically anything found in the dictionary. The lengths would be any yet if we were to constrain the limit to 5 letters, I wouldn't mind learning how?
What's a word? I presume you mean only a-z and A-Z but what lengths? Would liwyduglashvdbalishfvgapivflakhf be a word? How about ksjdas-asd-asd-asd? - can be in words. Please edit and clarify. – terdon yesterday
a-z
andA-Z
but what lengths? Wouldliwyduglashvdbalishfvgapivflakhf
be a word? How aboutksjdas-asd-asd-asd
?-
can be in words. Please edit and clarify.