Is there a way to Generate random numbers using "Custom IL" such as Random() function in C#?

asked 30 Aug, 07:36

SarathS's gravatar image

SarathS
164
accept rate: 0%


The Custom IL shape lets you simply hand-write the IL behind any of the available shapes. There is no special constructs available in Custom IL.

For the random number generation what I would do is create an external DLL (using a C# project) which will contain a class with a public static method that returns a random number.

You can then connect that DLL via External Reference in Graphite Studio and be able to call the method anywhere you need a random number.

link

answered 30 Aug, 12:30

ChrisG's gravatar image

ChrisG
1000k243148
accept rate: 67%

Thanks for the quick response Chris

(30 Aug, 13:06) SarathS
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×22
×6
×1

Asked: 30 Aug, 07:36

Seen: 179 times

Last updated: 30 Aug, 13:06

Powered By:   Graphite