←back to thread

Tldraw Computer

(computer.tldraw.com)
530 points duck | 4 comments | | HN request time: 0.615s | source
1. noduerme ◴[] No.42475879[source]
Question: Is there any way to induce randomness? Given two lists, instructions that say "Pick a random item from each list" consistently returns the same two items.
replies(2): >>42476389 #>>42476426 #
2. grilledchickenw ◴[] No.42476389[source]
Seems like the same text/instructions are cached, so they give you the same result. Just a hack, but adding in a data box with current date+time fixes it as expected as the inputs are no longer the same. I wouldn't rely on this for true randomness though.
replies(1): >>42477783 #
3. anentropic ◴[] No.42476426[source]
LLMs can't do random very well

needs something like a "tool use" or "python script" component to call out and get a proper random choice according to your instructions

4. noduerme ◴[] No.42477783[source]
It's interesting how sometimes the instructions seem to specifically dictate JSON output and other times not. Even without changing the prompt, it seems that this aspect - the generated series of steps for each instruction - is pretty random each time you run it. Or maybe it caches for awhile. What would be really nice would be if there were a checkbox to request structured or unstructured output from instructions, or better yet just lock in a set of derived steps you were happy with.