iblutil.random
Functions
Generate a human readable name by converting a hash value into an integer, then mapping it to a random index in the list of names. |
|
Generate a human readable name by combining a random adjective, a random colour, and a random animal. |
- sillyname()[source]
Generate a human readable name by combining a random adjective, a random colour, and a random animal. There are 87_623_250 possible combinations
- Returns:
str: A silly name.
- name_from_int(number: int)[source]
Generate a human readable name by converting a hash value into an integer, then mapping it to a random index in the list of names. There are 87_623_250 possible combinations
- Parameters:
number – int: integer - will be capped to the maximum value.
- Returns:
str: A 3 words name.