Is it possible to generate a UUID https://en.wikipedia.org/wiki/Universally_unique_identifier
of the following format with FlexScript: 123e4567-e89b-12d3-a456-426655440000?
Is it possible to generate a UUID https://en.wikipedia.org/wiki/Universally_unique_identifier
of the following format with FlexScript: 123e4567-e89b-12d3-a456-426655440000?
Not sure if there is a pattern it's supposed to follow, but you can run this in flexsim and it will give you a random UUID.
Array Lengths = [9,14,19,24,0]; int LP=1; Array inputs = ["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"]; string UUID=""; for (int i = 1; i <= 36; i++) { if (i == Lengths[LP]) { LP++; UUID+="-"; } else UUID+=inputs[duniform(1,inputs.length)]; } return UUID;
10 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved