In the petrinet shown below i have a problem creating tokens with random value in place input2, since the rand() function doesn't seem to work. Is there any other way to do it?

Creating tokens with random value
670 Views Asked by davdis At
1
There are 1 best solutions below
Related Questions in PETRI-NET
- Why tokens are not added?
- Why the number of Final Markings is undefined in reachability graph of Petri Net?
- Petri net drawing and code generation
- Evaluation nets web-based editor: searching for the toolkit
- Timed Indexed Color sets in CPN Tools that results in Unhandled Exception Error
- Is there a established data structure for place/transition petri-nets?
- how can I use PNML Framework to parse pnml file?
- Petri-net editor
- Is there a tool to model/simulate software concurrency?
- What are the best planners for PDDL2.1?
- Petri net encoding into PDDL
- Why does CPN TOOLS keep reverting my edits?
- In CPN-Tools create a integer colset that acts as an index
- export cpntools project to jpg/png
- Is there a PetriNet tool with an IPC interface?
Related Questions in CPN-TOOLS
- Error in SML code with higher order functions
- division operator error in standard ml and Cpn tools
- real colorset in cpn tools and sml
- In CPN-Tools create a integer colset that acts as an index
- CPN Tools - Exception compile is raised with aborted parsing
- how to write multiple conditions in if statement in cpn ml?
- How to create an indexed integer colset in CPN-Tools?
- Logs generation for process mining on a workflow model
- CPN ML: how do i get a product containing a certain element, from a list
- CPNTools how to create the Concept Graph
- Syntax Error : replacing TYVAR with SEMICOLON CPN Tools
- Creating tokens with random value
- How to use UNION type to receive different types in one CPN place?
- How to get the elements of a UNION type?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
CPN ML provides random choice of color for small color sets. You could use
SmallInt.ran()for a random integral number in the range [1,10].REALis not a small color set and if you were to useREAL.ran()you would get an exception.I would guess that a suitable solution for your example would be to use
1.0/real(SmallInt.ran()).I do not have a copy of CPN Tools at hand so please take the above advice critically.