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
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.
i want to create extension for random number generator
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.
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
like, give me an idea
Did you import java.util.concurrent.ThreadLocalRandom?
no i can’t
Don’t use public static main, Use:
@SimpleFunction(description = "RandomNumber")
public int RandomNumber(){
int randomNumber = ThreadLocalRandom.current().nextInt(999);
return randomNumber;
}
But don’t forget to import using:
import java.util.concurrent.ThreadLocalRandom;