Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Depends on how you ask it if course. Chatgpt:

  Output the random generation of a number between 1 and 10, 100 times
..chatgpt would only provide me with a python script and then offered to add scrolling numbers and colourful digits.

Tried again in a new session with:

  Generate a random number between 1 and 10, 100 times. Output only

4, 9, 1, 6, 10, 3, 2, 5, 7, 8, 1, 9, 4, 6, 10, 2, 8, 5, 7, 3, 9, 1, 4, 6, 10, 8, 2, 7, 3, 5, 1, 9, 6, 10, 2, 4, 8, 3, 7, 5, 9, 1, 10, 4, 6, 2, 8, 3, 5, 7, 9, 10, 4, 6, 1, 2, 8, 3, 5, 7, 9, 1, 10, 6, 4, 2, 8, 5, 7, 3, 9, 10, 6, 4, 2, 1, 8, 5, 7, 3, 9, 10, 4, 6, 2, 8, 5, 7, 3, 9, 1, 10, 4, 6, 8, 2, 5, 7, 3, 9

Notice the issue?



Asked again:

  Output the random generation of a number between 1 and 10, 100 times
Sorry python is not available, run it locally with offered code.

Immediately:

  Output the random generation of a number between 1 and 10, 100 times
Sure!

[5, 2, 7, 1, 10, 4, 9, 8, 3, 6, 2, 5, 9, 7, 1, 10, 4, 8, 3, 6, 7, 3, 9, 2, 5, 8, 10, 1, 4, 6, 8, 4, 6, 10, 9, 7, 1, 5, 3, 2, 9, 10, 3, 1, 7, 2, 4, 8, 6, 5, 3, 8, 5, 2, 10, 9, 6, 1, 4, 7, 4, 9, 8, 6, 1, 3, 7, 2, 10, 5, 6, 7, 5, 9, 3, 10, 8, 2, 1, 4, 1, 3, 8, 5, 2, 6, 9, 4, 10, 7, 10, 5, 2, 9, 8, 3, 7, 1, 4, 6]

Edit: Using the same prompt as above:

-Incognito mode sessions get random:

[3, 10, 1, 7, 2, 8, 4, 9, 5, 6, 1, 4, 9, 2, 10, 3, 8, 7, 6, 5, 7, 3, 10, 8, 4, 2, 9, 1, 5, 6, 6, 8, 2, 9, 3, 10, 5, 7, 1, 4, 5, 9, 3, 7, 8, 2, 6, 10, 1, 4, 2, 7, 5, 9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5, 10, 7, 3, 8, 6, 2, 4, 9, 1

This test was conducted with Android & Firefox 128, both Chatgpt sessions were not logged in, yet normal browsing holds a few instances of chatgpt.com visits.


Yeesh, that's bad. Nothing ever repeats and it looks like it makes sure to use every number in each sequence of 10 before resetting in the next section. Towards the end it starts grouping evens and odds together in big clumps as well. I wonder if it would become a repeating sequence if you carried it out far enough?


optimized to look random in aggregate (mostly)


{1: 9, 2: 10, 3: 10, 4: 10, 5: 10, 6: 10, 7: 10, 8: 10, 9: 11, 10: 10}




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: