Timeline for Random point on a sphere
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 11, 2019 at 13:20 | history | edited | Draco18s no longer trusts SE | CC BY-SA 4.0 | deleted 45 characters in body |
| Sep 11, 2019 at 13:19 | comment | added | Draco18s no longer trusts SE | @Orace Doh. I forgot about doing that. Originally it was needed (because of the Vector3; 2 fully qualifieds or 1 using). | |
| Sep 11, 2019 at 10:17 | comment | added | Orace | f=>UnityEngine.Random.onUnitSphere saves you the using | |
| Sep 10, 2019 at 15:35 | comment | added | Draco18s no longer trusts SE | @LiefdeWen Yeah, I just wasn't sure how the declaration was handled and wasn't really feeling up to "searching meta." | |
| Sep 10, 2019 at 15:34 | history | edited | Draco18s no longer trusts SE | CC BY-SA 4.0 | deleted 47 characters in body |
| Sep 10, 2019 at 14:37 | comment | added | LiefdeWen | In codegolf returning a function is perfectly fine, and you don't have to count the declaration either meaning you can do sneaky things with dynamic parameters. You also don't count the last semi-colon. You do however count all using statements you add. so your byte count needs to include the using. But f=>Random.onUnitSphere is a perfectly valid submission | |
| Sep 10, 2019 at 13:21 | comment | added | Draco18s no longer trusts SE | @LiefdeWen I knew about lambdas, I just wasn't sure if that was enough (in terms of validity on Code Golf) because it isn't declaring f's Type; using var only works inside a method and System.Func<Vector3> was longer. | |
| Sep 10, 2019 at 10:51 | comment | added | LiefdeWen | Good use of a built in +1, You could just submit a function to be a bit shorter f=>Random.onUnitSphere | |
| Sep 9, 2019 at 15:53 | history | answered | Draco18s no longer trusts SE | CC BY-SA 4.0 |