Error When Compile Extension

(Harsh Pratap Singh) #1

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

(Cian) #2

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


(Harsh Pratap Singh) #3

its not in app its in extension

(Cian) #4

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
(Harsh Pratap Singh) #5

i want to create extension for random number generator

(Cian) #6

There is a component

1 Like
(Harsh Pratap Singh) #7

but i want extension

(Cian) #8

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
(Harsh Pratap Singh) #9

please help me to build this i give you full credit

(Abhijith) #10

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

(Harsh Pratap Singh) #11

like, give me an idea

(Ken) #12

Did you import java.util.concurrent.ThreadLocalRandom?

(Harsh Pratap Singh) #13

no i can’t

(Harsh Pratap Singh) #14

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

(Ken) #15

Don’t use public static main, Use:

@SimpleFunction(description = "RandomNumber")
  public int RandomNumber(){
    int randomNumber = ThreadLocalRandom.current().nextInt(999);
    return randomNumber;
(Ken) #16

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

1 Like