Content tagged random-number

5 usages of this tag
  • 16 replies
  • 1.68K views
This content is deleted
Forum Topic
Need help in very complicated random
Not favoritedFavorited Favorited 0 favourites

I have a Sprite "Dino" and copied 3 times in layout. "Dino" has instance variable "Color". I have another Sprite "Choose" and copied 10 times. Now I want to set...

posted 6 years ago
  • 5 replies
  • 1.89K views
This content is deleted
Forum Topic
Generating a random number with scripting
Not favoritedFavorited Favorited 0 favourites

How do I generate a random whole number via scripting? I tried using math.RandomInt(100), math.Random(100) and more. But it keeps telling me that math or random...

  • 2 replies
  • 1.13K views
This content is deleted
Forum Topic
How do I find more 50/50 chances? (some examples shown)
Not favoritedFavorited Favorited 0 favourites

I wanted to run a function 50% of the time, so I was able to do this: Tickcount % 2 = 0. I was also able to use: Unixtime % 2 = 0. Are there other things that I...

  • 4 replies
  • 1.71K views
Not favoritedFavorited Favorited 0 favourites

I'm trying to generate random numbers that don't repeat, after some searches I found a tutorial that taught this, but in the video it uses Construct 2. I tried...

  • 7 replies
  • 206 views
This content is deleted
Forum Topic
How to Randomize Numbers Fairly?
Not favoritedFavorited Favorited 0 favourites

I still don't understand how to randomize numbers fairly. Let's say I want fair numbers 0,1,2,3,4, and 5, but I'm having trouble getting number 5, it's almost i...

posted 4 months ago