This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto approximate(double radius, uint npoints) | |
{ | |
import std.range : generate, take; | |
import std.algorithm : count; | |
import std.random : Xorshift, unpredictableSeed, uniform; | |
auto radius2 = radius * radius; | |
auto generator = Xorshift(unpredictableSeed); | |
auto makeRandomCoord() { return uniform!`[]`(0, radius, generator) ^^ 2; } | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/+dub.sdl: | |
dependency "vibe-d" version="~>0.8.0" | |
+/ | |
import vibe.d; | |
import std.stdio; | |
struct RateByDate | |
{ | |
string no; | |
string effectiveDate; |