Error When Compile Extension

i want to create extension for random number generator
AnyOne Said Me What Does The Error Its Is?

Thats not enough information.

However if it says can’t find symbol it is probably a block with an empty variable

Look at your errors here

image

its not in app its in extension

No one can help you with the little information you are providing. If you cannot provide more information you will not get help.

What extension, What blocks,

Here is how to ask a question.

1 Like

i want to create extension for random number generator

There is a component

1 Like

but i want extension

For whatever reason you want one, fine… then build it. I dont know what your question is, however creating a random number generator is probbably one of the easier extensions to build. We are not going to do it for you.

I know there is a java.util.Random class

Good luck with it.

1 Like

please help me to build this i give you full credit

Why are you making extensions for the functions that already exists in the builder? Make something useful

3 Likes

like, give me an idea

Did you import java.util.concurrent.ThreadLocalRandom?

no i can’t

@Abhijith_Dominic I Already Set Return Type But It Ask For Set return tyoe requiredScreenshot_20190402_092555
Error

Don’t use public static main, Use:

@SimpleFunction(description = "RandomNumber")
  public int RandomNumber(){
    int randomNumber = ThreadLocalRandom.current().nextInt(999);
    return randomNumber;
  }
2 Likes

But don’t forget to import using:
import java.util.concurrent.ThreadLocalRandom;

1 Like