SkillAgentSearch skills...

Proquint.NET

A proquint generator for .NET (Proquint is a PRO-nouncable QUINT-uplet of alternating unambiguous consonants and vowels, for example: "lusab")

Install / Use

/learn @thepirat000/Proquint.NET
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Proquint.NET

Proquint generator for .NET.

Please see the article on proquints: http://arXiv.org/html/0901.4016. Original C version: https://github.com/dsw/proquint.

A Proquint is a PRO-nouncable QUINT-uplet of alternating unambiguous consonants and vowels.

A 32-bit implementation is provided (so there are 2^32 different proquints), each of which is a string consisting on two quintuplet strings separated by the character '-'.

Some examples:

| index | Proquint | | ------- | ----------- | | 0 | babab-babab | | 1 | babab-babad | | ... | ... | | 2147483647 | luzuz-zuzuz | | ... | ... | | 4294967295 | zuzuz-zuzuz |

To generate a random quint use the NewQuint() method:

var q = Quint32.NewQuint();

You can get the string by using ToString() method or casting to string:

var s1 = (string)q;
var s2 = q.ToString();

You can get the underlying value casting to uint:

uint i = (uint)q;

You can use the >, <, >=, <=, == and != operators to compare the underlying value between two proquints.

View on GitHub
GitHub Stars7
CategoryDevelopment
Updated3y ago
Forks1

Languages

C#

Security Score

70/100

Audited on Mar 20, 2023

No findings