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
671 views Asked by davdis At
1
There are 1 answers
Related Questions in PETRI-NET
- Drawing a node in click position using Vis.js
- when i run this function it just gives the reachabilty graph
- Is there a better or more simple way to calculate reachability?
- Save Petri net model and load it again in Python
- In CPN-Tools create a integer colset that acts as an index
- Petri net encoding into PDDL
- What are the best planners for PDDL2.1?
- Can someone tell me which language this is and how i should compile this into a graph?
- Jointjs petri-net graph tokens do not render! What can i do?
- How to create an indexed integer colset in CPN-Tools?
- How to change value by async.run with Petriflow?
- How to create a new case in Petriflow language?
- How would a Petri Net fire output events to an external device?
- Using threads in java how can i implement this petri net?
- Drawing Petri Network using Networkx module in Python
Related Questions in CPN-TOOLS
- CPNTools how to create the Concept Graph
- In CPN-Tools create a integer colset that acts as an index
- How to create an indexed integer colset in CPN-Tools?
- real colorset in cpn tools and sml
- division operator error in standard ml and Cpn tools
- Error in SML code with higher order functions
- Syntax Error : replacing TYVAR with SEMICOLON CPN Tools
- How to get the elements of a UNION type?
- How to use UNION type to receive different types in one CPN place?
- CPN Tools - Exception compile is raised with aborted parsing
- CPN ML: how do i get a product containing a certain element, from a list
- Logs generation for process mining on a workflow model
- how to write multiple conditions in if statement in cpn ml?
- Creating tokens with random value
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?
Popular Tags
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)
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.