Timeline for How to randomize letters in a word
Current License: CC BY-SA 3.0
113 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 7 at 18:55 | answer | added | xrs | timeline score: 0 | |
Oct 13 at 20:21 | answer | added | nyxbird | timeline score: 1 | |
Jun 8, 2023 at 18:51 | answer | added | The Thonnu | timeline score: 1 | |
Mar 7, 2023 at 16:59 | answer | added | evanstar3 | timeline score: 1 | |
Feb 18, 2023 at 4:47 | answer | added | roblogic | timeline score: 0 | |
Feb 17, 2023 at 16:13 | answer | added | emirps | timeline score: 0 | |
Feb 1, 2023 at 3:31 | answer | added | Jonah | timeline score: 0 | |
Feb 1, 2023 at 2:28 | answer | added | EzioMercer | timeline score: 1 | |
Jan 31, 2023 at 20:22 | comment | added | gildux | It took me a couple of minutes to read the first sentence. It's very confusion 'cause I took some words for some others. | |
Jan 31, 2023 at 14:16 | answer | added | bigyihsuan | timeline score: 0 | |
Jul 15, 2022 at 17:22 | answer | added | Vadim Tukaev | timeline score: 1 | |
Mar 10, 2022 at 1:50 | comment | added | Bbrk24 | This matters for Swift (see my rambling here), so I have to ask: What counts as a "character"? Can we assume that the input is always pure ASCII? | |
Mar 9, 2022 at 21:04 | answer | added | coltim | timeline score: 1 | |
Mar 8, 2022 at 21:04 | comment | added | Seggan | Funny, I actually read the Russian version of the story and I only noticed when the story actually told me | |
Mar 8, 2022 at 20:16 | answer | added | sinvec | timeline score: 1 | |
Feb 2, 2022 at 22:55 | answer | added | emanresu A | timeline score: 2 | |
Oct 10, 2018 at 12:18 | answer | added | Kevin Cruijssen | timeline score: 1 | |
Oct 10, 2018 at 11:43 | answer | added | Spitemaster | timeline score: 1 | |
Oct 10, 2018 at 6:50 | answer | added | guest271314 | timeline score: 1 | |
Oct 9, 2018 at 9:51 | answer | added | mazzy | timeline score: 2 | |
Oct 9, 2018 at 9:27 | answer | added | user58988 | timeline score: 1 | |
Oct 9, 2018 at 7:29 | answer | added | guest271314 | timeline score: 1 | |
Oct 9, 2018 at 6:15 | answer | added | JosiahRyanW | timeline score: 3 | |
Jul 18, 2018 at 3:32 | review | Close votes | |||
Jul 18, 2018 at 10:10 | |||||
Jul 18, 2018 at 2:45 | answer | added | JathOsh | timeline score: 1 | |
Jul 17, 2018 at 16:48 | answer | added | JayCe | timeline score: 2 | |
Apr 9, 2018 at 7:47 | answer | added | Jo King♦ | timeline score: 1 | |
Apr 9, 2018 at 4:45 | answer | added | Titus | timeline score: 1 | |
Jun 13, 2017 at 13:02 | answer | added | Andrew Haynes | timeline score: 3 | |
Dec 13, 2016 at 12:37 | answer | added | Dom Hastings | timeline score: 2 | |
Dec 8, 2016 at 15:54 | answer | added | redstarcoder | timeline score: 1 | |
Dec 7, 2016 at 3:11 | answer | added | giraffe | timeline score: 2 | |
Dec 6, 2016 at 13:45 | answer | added | NeRoboto | timeline score: 1 | |
Nov 10, 2016 at 19:26 | answer | added | Lee W | timeline score: 2 | |
Nov 10, 2016 at 19:10 | comment | added | Angs |
@ThomasEding shuffling arbitrarily long strings uniformly would require that the random number generator has arbitrarily many bits in its state, so id is a good compromise.
|
|
Dec 27, 2015 at 7:56 | comment | added | Cyoce | Is there any reason this isn't just as simple as using a built in shuffle function? | |
Dec 27, 2015 at 6:45 | answer | added | dzil123 | timeline score: 2 | |
Mar 30, 2015 at 22:54 | answer | added | Maltysen | timeline score: 1 | |
Mar 30, 2015 at 9:44 | answer | added | Sanchises | timeline score: 1 | |
Mar 27, 2015 at 17:03 | comment | added | Tomalak | Throughout the other answers valid results for edge cases ("short input") were required. The empty string qualifies as an edge case, so I'd say no. | |
Mar 27, 2015 at 16:31 | comment | added | Martin Ender | Can we assume that the word is not empty? | |
Mar 27, 2015 at 15:33 | answer | added | Martin Ender | timeline score: 2 | |
Mar 26, 2015 at 17:32 | answer | added | draegtun | timeline score: 1 | |
Mar 24, 2015 at 21:16 | answer | added | bcsb1001 | timeline score: 1 | |
Nov 1, 2014 at 23:18 | answer | added | Muqo | timeline score: 1 | |
Aug 23, 2012 at 12:33 | answer | added | DavidC | timeline score: 1 | |
Aug 23, 2012 at 11:22 | answer | added | defhlt | timeline score: 2 | |
Aug 23, 2012 at 5:24 | answer | added | MrZander | timeline score: 2 | |
Apr 10, 2012 at 3:16 | answer | added | jazzkingrt | timeline score: 2 | |
Mar 21, 2012 at 17:27 | answer | added | sinedcm | timeline score: 1 | |
Mar 21, 2012 at 10:43 | answer | added | Pontus von Brömssen | timeline score: 1 | |
Mar 20, 2012 at 9:42 | answer | added | tmartin | timeline score: 2 | |
Mar 19, 2012 at 21:33 | answer | added | Gaffi | timeline score: 1 | |
Mar 18, 2012 at 19:00 | answer | added | Paolo | timeline score: 3 | |
Nov 16, 2011 at 9:06 | answer | added | cwallenpoole | timeline score: 1 | |
Nov 16, 2011 at 7:22 | answer | added | Armand | timeline score: 2 | |
Nov 14, 2011 at 14:28 | answer | added | bkuder | timeline score: 2 | |
Sep 21, 2011 at 15:45 | answer | added | Luis SaTaNiC | timeline score: 2 | |
Sep 17, 2011 at 7:58 | answer | added | Zaid | timeline score: 1 | |
Sep 9, 2011 at 18:38 | answer | added | Donald Wilson | timeline score: 3 | |
Aug 7, 2011 at 21:20 | history | tweeted | twitter.com/#!/StackCodeGolf/status/100315462591721472 | ||
Aug 6, 2011 at 21:55 | history | edited | Tomalak | CC BY-SA 3.0 |
edited body
|
Aug 5, 2011 at 9:22 | answer | added | Joey | timeline score: 2 | |
Aug 4, 2011 at 22:39 | answer | added | Thomas Eding | timeline score: 1 | |
Aug 4, 2011 at 21:03 | answer | added | Arlen | timeline score: 2 | |
Aug 4, 2011 at 20:11 | answer | added | boothby | timeline score: 4 | |
Aug 4, 2011 at 18:57 | answer | added | Mechanical snail | timeline score: 5 | |
Aug 4, 2011 at 18:33 | comment | added | Nate Koppenhaver | +1 for the first sentence: it actually took me a few seconds to realize it was spelled wrong XP | |
Aug 4, 2011 at 17:49 | comment | added | Thomas Eding | I would like to clarify that by uniform, we should treat the problem as if each character was unique. That is, duplicate letters will 'apparently' skew the distribution, but in actuality, it doesn't, because we are really working on the problem of permuting [1, 2, ..., n] while keeping 1 and n in the same spot. | |
Aug 4, 2011 at 17:27 | answer | added | migimaru | timeline score: 4 | |
Aug 4, 2011 at 17:25 | comment | added | Thomas Eding | Should the specification be updated to require a uniform distribution of outcomes? This would disallow the 4 character Haskell solution. It would also disallow your example Javascript solution (shuffling by doing a sort like that is not uniform). | |
Aug 4, 2011 at 17:08 | answer | added | Thomas Eding | timeline score: 1 | |
Aug 4, 2011 at 16:31 | answer | added | Rotsor | timeline score: 21 | |
Aug 4, 2011 at 16:05 | answer | added | Scott Logan | timeline score: 2 | |
Aug 4, 2011 at 13:51 | answer | added | jpjacobs | timeline score: 1 | |
Aug 4, 2011 at 10:51 | comment | added | Konrad Rudolph | To clarify the spec: is it required that the function takes an argument and returns the result or are other solutions acceptable? For instance, in C++ it’s much shorter not to bother with arguments and return type and just mutate some global state. | |
Aug 4, 2011 at 7:37 | comment | added | Arlen |
@trinithis not sure what you talking about, but id is the identity function. I would still like to see Haskell solution to this problem in less than 100 characters.
|
|
Aug 4, 2011 at 6:59 | history | edited | Tomalak | CC BY-SA 3.0 |
added 224 characters in body
|
Aug 4, 2011 at 6:33 | history | edited | Tomalak | CC BY-SA 3.0 |
added 122 characters in body
|
Aug 4, 2011 at 5:37 | answer | added | Arlen | timeline score: 3 | |
Aug 4, 2011 at 3:22 | answer | added | user unknown | timeline score: 1 | |
Aug 3, 2011 at 21:05 | answer | added | Thomas Eding | timeline score: 1 | |
Aug 3, 2011 at 20:55 | answer | added | sideproject | timeline score: 1 | |
Aug 3, 2011 at 20:33 | comment | added | Tomalak | @trinithis Yeah I assumed the function would only be fed with valid input, i.e. one word. ;) | |
Aug 3, 2011 at 20:28 | comment | added | Thomas Eding | Yes. It returns the exact same thing as the input. On another note, what do we do about punctuation? Do we only operate on words consisting only of letters? | |
Aug 3, 2011 at 20:24 | comment | added | Tomalak | @trinithis I'm afraid I know nothing about Haskell. ;) Does that keep the first and last letters in place? | |
Aug 3, 2011 at 20:14 | comment | added | Thomas Eding |
The randomizing function always returns the same (AHEM) random outcome. (id x = x is a built in function. For Haskellers out there, I still think id should be able to be written point-free style: id= )
|
|
Aug 3, 2011 at 20:11 | comment | added | Tomalak | @trinithis Huh? | |
Aug 3, 2011 at 20:07 | answer | added | Harry K. | timeline score: 7 | |
Aug 3, 2011 at 20:01 | comment | added | Thomas Eding |
Haskell, 4 characters: r=id .
|
|
Aug 3, 2011 at 19:51 | answer | added | Andbdrew | timeline score: 3 | |
Aug 3, 2011 at 19:38 | answer | added | KeithS | timeline score: 1 | |
Aug 3, 2011 at 18:31 | answer | added | mbx | timeline score: 3 | |
Aug 3, 2011 at 18:22 | answer | added | tobius | timeline score: 6 | |
Aug 3, 2011 at 17:07 | answer | added | dr jimbob | timeline score: 7 | |
Aug 3, 2011 at 17:07 | answer | added | Ben Richards | timeline score: 6 | |
Aug 3, 2011 at 16:34 | answer | added | Howard | timeline score: 15 | |
Aug 3, 2011 at 16:29 | answer | added | arrdem | timeline score: 0 | |
Aug 3, 2011 at 16:12 | answer | added | ratchet freak | timeline score: 4 | |
Aug 3, 2011 at 15:41 | answer | added | Konrad Rudolph | timeline score: 11 | |
Aug 3, 2011 at 15:25 | answer | added | Eric | timeline score: 19 | |
Aug 3, 2011 at 14:57 | history | edited | Ventero |
edited tags
|
|
Aug 3, 2011 at 14:53 | answer | added | Ryan Kinal | timeline score: 4 | |
Aug 3, 2011 at 14:50 | answer | added | Ventero | timeline score: 11 | |
Aug 3, 2011 at 14:09 | answer | added | Gareth | timeline score: 5 | |
Aug 3, 2011 at 13:10 | answer | added | Aleksi Yrttiaho | timeline score: 5 | |
Aug 3, 2011 at 13:08 | answer | added | Gareth | timeline score: 3 | |
Aug 3, 2011 at 12:59 | history | edited | Tomalak | CC BY-SA 3.0 |
deleted 4 characters in body; edited tags
|
S Aug 3, 2011 at 12:59 | history | suggested | Scott Logan |
added code-golf tag
|
|
Aug 3, 2011 at 12:56 | review | Suggested edits | |||
S Aug 3, 2011 at 12:59 | |||||
Aug 3, 2011 at 12:43 | answer | added | Scott Logan | timeline score: 6 | |
Aug 3, 2011 at 11:31 | history | edited | Tomalak | CC BY-SA 3.0 |
deleted 1 characters in body
|
Aug 3, 2011 at 11:25 | history | asked | Tomalak | CC BY-SA 3.0 |