go-random
Custom RNG function in Go for MLH Build Day 2 challenge This function uses Unix timestamp (in nanoseconds) as seed. Multipler, increment and modulo values are the same as in java.util.Random for example.
Function returns randomly generated value in range (0;1). As an example in main.go returned value is multipled by 11 and casted to int to get values in range <0;10>.
Log in or sign up for Devpost to join the conversation.