Timeline for Shortest code to produce non-deterministic output
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2020 at 9:04 | history | edited | CommunityBot |
Commonmark migration
|
|
Dec 2, 2016 at 14:52 | comment | added | Snowfire | @Yodle Oh yes, of course. I didn't think about that, my fault. | |
Dec 2, 2016 at 14:48 | comment | added | Yodle |
@Snowfire ()=>System.DateTime.Now; is 2 bytes longer unfortunately, but yes it would work if you didn't have to include System.
|
|
Dec 2, 2016 at 7:59 | comment | added | Snowfire | Wouldn't DateTime.Now also fit the requirements? It produces different output at different times and is shorter than Environment.TickCOunt() or a.GetHashCode(). | |
Dec 1, 2016 at 15:41 | comment | added | Yodle |
@Poke :D I'm trying to figure out if there's an even shorter way, but so far most of the other things for the function don't return different things each run. Although doing a.Target returns nondeterministic+<>c__DisplayClass0_0 which has 0_0 in it, which is cool.
|
|
Dec 1, 2016 at 15:39 | comment | added | Poke | You beat the javas :[ Have an upvote. (verbose language users like us gotta stick together) | |
Dec 1, 2016 at 15:37 | comment | added | Yodle | @Dennis_E Yeah I didn't know you could do it like that for one liners, thanks! | |
Dec 1, 2016 at 15:35 | review | Low quality posts | |||
Dec 1, 2016 at 15:40 | |||||
Dec 1, 2016 at 15:31 | history | edited | Yodle | CC BY-SA 3.0 |
deleted 174 characters in body
|
Dec 1, 2016 at 15:18 | comment | added | Dennis_E |
Why the braces and the return ? Just make it ()=>Environment.TickCount;
|
|
Dec 1, 2016 at 15:12 | history | answered | Yodle | CC BY-SA 3.0 |