Random function with 2 parameters
-
Hi everyone, I'm a beginner with Fuze and I'm studying the syntax. I can already program but I have difficulties with some functions that I don't find. For example I was looking for the Random function with 2 parameters. Is there something like this or should I write it? Thank you
-
@chucky831 What are the two parameters?
-
@pianofire I have to practically take a random number between 1 and -1 how can I do it with the random function if it takes only 1 parameter? Maybe I saw wrong but is there a list somewhere with all the functions available? Thanks for the help
-
Yes you would need to write your own but it shouldn't be difficult
The functions are listed here: https://fuzearena.com/help (and in the help on the app itself)
-
It's not difficult indeed. If you need an example, I've posted a function that does this before on https://fuzearena.com/forum/topic/705/creatively-titled-shmup-demo/13
// returns random value within the specified range function rng(low, high) int size = abs(high-low) int result = random(size)+low return result
-
@PB____ thanks
-
@PB____ We should get that one in the useful functions section
-
Perfect thank you so much for the answers. Now I study it calmly