Bug 143408 - Create a function to generate random strings with options to only include various sets
Summary: Create a function to generate random strings with options to only include var...
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
: 143407 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-07-16 14:02 UTC by Peter Burbery
Modified: 2021-07-19 13:48 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Implementation Example (17.99 KB, application/vnd.oasis.opendocument.spreadsheet)
2021-07-16 14:05 UTC, Peter Burbery
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Burbery 2021-07-16 14:02:00 UTC
Description:
A random string generator should be implemented in LibreOffice that would generate a random string out of the following inputs: length, and which character sets to include (uppercase, lowercase, numbers, hexadecimal, special characters). This would generate a random string 16 characters long with a choice of one of the possible combinations of numbers, letters and special characters if someone picked the specific input option. 

Steps to Reproduce:
1.Select a range of cells
2.Click a button in the Insert menu to generate a random string
3.Select a set of character sets in a pop-up box and specify the length of the random string to be generated.
4.The selected range has random strings inserted.

Actual Results:
Enhancement

Expected Results:
Enhancement


Reproducible: Always


User Profile Reset: No



Additional Info:
Enhancement
Comment 1 Peter Burbery 2021-07-16 14:05:05 UTC
Created attachment 173634 [details]
Implementation Example
Comment 2 Peter Burbery 2021-07-16 14:08:27 UTC
The file's input is as follows: length 11 characters, character set selection of numbers, uppercase letters, lowercase letters.
A simple formula for generating the example is =CONCAT(INT(RAND()*10), CHAR(48+RAND()*10), INT(RAND()*10),CHAR(65+RAND()*26),INT(RAND()*1000),CHAR(97+RAND()*26),INT(RAND()*1000)).
Comment 3 m_a_riosv 2021-07-16 21:04:43 UTC
*** Bug 143407 has been marked as a duplicate of this bug. ***
Comment 4 Buovjaga 2021-07-17 14:35:38 UTC
Sounds like the job for an extension or macro
Comment 5 Heiko Tietze 2021-07-19 13:48:45 UTC
You resolved the (unclear) use case yourself with comment 2. Calc functions provide everything to generate a random string. Besides, if there is no general use case such a feature would indeed better realized per extension.