API Reference
pyrandonaut
This module interfaces with a QRNG (Quantum Random Number Generator) where it gets a list of n truly random numbers, converts them to coordinates and computes the gaussian kernel density estimate of those coordinates, returning the point within the defined radius, where the density of random coordinates is highest, similar to how an Attractor point is calculated by the Randonautica app.
- exception pyrandonaut.DivisionError[source]
Raised when number of requested points isn’t divisible by 1024
- pyrandonaut.get_data(amount)[source]
Gets a string of 4096 bytes from Randonautica’s QRNG and turns it into a list of uint16 values
- Parameters:
amount (int) –
- pyrandonaut.random_location(start_lat, start_lon, max_radius, rand_float_1, rand_float_2)[source]
Converts 2 floating point values to coordinates within the defined radius from the starting position
- pyrandonaut.calculate_kde(coord_list)[source]
Calculates the point with the highest density of points using kernel density estimation