Score:0

Genrerate n numbers based on a string

gh flag

I wanna generate a list of numbers based on a unique string. They shouldn't be predicatble and every time to generate they are the same.

Could someone help me pleeease :)?

knaccc avatar
es flag
Use SHAKE-128 or HKDF to get a deterministically pseudo-random stream of bits, then use rejection sampling to turn a series of bits into a number in the necessary range. See the question linked above.
Paul Uszak avatar
cn flag
Hiiiii :-) I think that your question need some work. Specifically last sentence. Is what predictable, repeatable, unique??? More than two sentences would help us to help you.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.