ElCanut to Technology@beehaw.org · 9 months agoAsk ChatGPT to pick a number between 1 and 100imagemessage-square143fedilinkarrow-up1439arrow-down10
arrow-up1439arrow-down1imageAsk ChatGPT to pick a number between 1 and 100ElCanut to Technology@beehaw.org · 9 months agomessage-square143fedilink
minus-squareRook@pawb.sociallinkfedilinkarrow-up17·9 months agoWhich model? When I tried on ChatGPT 4, it wrote a short python script and executed it to get a random integer. import random # Pick a random number between 1 and 100 random_number = random.randint(1, 100) random_number
minus-squareTonyTonyChopper@mander.xyzlinkfedilinkarrow-up7·9 months agodoes the neural network actually run scripts or is it pretending
minus-squareAmju Wolf@pawb.sociallinkfedilinkEnglisharrow-up10·9 months agoIt generates code and then you can use a call to some runtime execution API to run that code, completely separate from the neural network.
minus-squareUmbrias@beehaw.orglinkfedilinkarrow-up2·9 months agoThat’s not answering the question though. “Pick a number between 1 and 100” doesn’t mean “grab two d10” or write a script.
Which model?
When I tried on ChatGPT 4, it wrote a short python script and executed it to get a random integer.
import random # Pick a random number between 1 and 100 random_number = random.randint(1, 100) random_number
does the neural network actually run scripts or is it pretending
It generates code and then you can use a call to some runtime execution API to run that code, completely separate from the neural network.
That’s not answering the question though.
“Pick a number between 1 and 100” doesn’t mean “grab two d10” or write a script.