Skip to content
This repository was archived by the owner on Jun 12, 2021. It is now read-only.

numTool

AdmiralEmser edited this page Jan 11, 2021 · 2 revisions

Includes:

Calculation tools.


folf::numTool::checkPrime(const unsigned long long*)

Input: (const unsigned long long* NUMBER)

Return type: boolean

Purpose: Checks if NUMBER is a prime.

folf::numTool::primeSum(const unsigned long long*, unsigned long long*)

Input: (const unsigned long long* MAX_NUMBER, unsigned long long* PRIME_SUM)

Return type: none (void)

Purpose: Sums up all primes up to MAX_NUMBER and saves the value in PRIME_SUM.

folf::numTool::randomNum(int)

Input: (int MAX_NUMBER)

Return type: unsigned long long

Purpose: Returns a random number between zero and MAX_NUMBER.

folf::numTool::isChance(int)

Input: (int DENOMINATOR_NUMBER)

Return type: boolean

Purpose: This is a random generator. Chance is given by 1/DENOMINATOR_NUMBER.

folf::numTool::createVector()

Input: (const unsigned int* START_NUMBER, const unsigned int* DESTINATION_NUMBER)

Return type: signed int

Purpose: Calculates a vector of two numbers, then returns the calculated number.

Pages

Home

Contents of FOLF-namespace


Last update of pages: 11.01.2021

Clone this wiki locally