Skip to main content

Timeline for Implement this key cipher

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
Aug 19, 2016 at 20:05 history edited Tom Doodler CC BY-SA 3.0
deleted 4 characters in body
Aug 19, 2016 at 20:04 comment added Tom Doodler Creating new Randoms for every random number does always give me the same number for each iteration then, which is certainly not what OP wants, but thanks anyway :)
Aug 19, 2016 at 20:01 comment added milk Why not leave the result of Console.ReadLine() as string? i.Length is shorter than i.Count(), you won't need System.Linq. string has a char indexer. Also creating new Random objects in the loop is less bytes: new Random().Next(10).
Aug 19, 2016 at 20:01 history edited Tom Doodler CC BY-SA 3.0
added 118 characters in body
Aug 19, 2016 at 19:55 comment added milk You can replace types with var. ie- var c= instead of string c= to shave a few bytes.
Aug 19, 2016 at 18:00 comment added Tom Doodler I think I can do that, let me check
Aug 19, 2016 at 17:26 comment added theLambGoat I'm also not well versed in C# but I think you can move the =r.Next(10) up to the declaration of d and save on a set of parenthesis in the write. Or does the random not return an int so you can't do that?
Aug 19, 2016 at 17:06 history edited Tom Doodler CC BY-SA 3.0
added 42 characters in body
Aug 19, 2016 at 17:01 comment added FryAmTheEggman The trick is not to compare with other languages ;) I'm not particularly well versed in C# golf, but can you do b++<i.Count() and leave the third clause empty? Also, I don't think you need a trailing newline, so the last call to WriteLine could be Write instead.
Aug 19, 2016 at 16:54 history answered Tom Doodler CC BY-SA 3.0