Ehm...
› give me a random number between 1 and 10
• 7
Worked for 1s • 16:45
› that wasn't random, you always choose 7. can this flaw be fixed?
• Yes. Language models have biases when asked to “pick randomly,” so their choices aren’t reliably uniform. My previous answer didn’t use a random-number generator. The practical fix is to use a random-number generator whenever randomness matters. That fixes the selection process, though it doesn’t remove the model’s underlying bias.
› give me a random number between 1 and 10
• I’ll use a random-number generator.
• Ran python3 -c 'import secrets; print(secrets.randbelow(10) + 1)'
└ 7
• 7