Sukhdev
Fri Sep 23 14:17:03 CDT 2005
You can use following csharp code for this:
System.Random rr = new System.Random();
MyValue = rr.Next(1, 6);
Sukhdev
"juvi" wrote:
> Thank you for your quick reply. I am new to .net developement. I tried it
> with the code translator but the Rnd() function is still unknown.
>
> How would you translate this code: MyValue = CInt(Int((6 * Rnd()) + 1))
>
> thank you! juvi
>
> --------------------------------------
> "Cowboy (Gregory A. Beamer) - MVP" wrote:
>
> > 1. Compile it and make reference to the compiled library
> > 2. Convert to C# :-)
> >
http://www.carlosag.net/Tools/CodeTranslator/Default.aspx
> >
> > --
> > Gregory A. Beamer
> > MVP; MCP: +I, SE, SD, DBA
> >
> > ***************************
> > Think Outside the Box!
> > ***************************
> >
> >
> > "juvi" wrote:
> >
> > > Hi,
> > >
> > > How can I use a VB.Net function in a C# project. Is there a way to call it
> > > directly from code? thx juvi