How do I get multiple random number from advance random plugin?

Not favoritedFavorited Favorited 0 favourites
  • 4 posts
From the Asset Store
Hungry Number
$4.99 USD
Collect smaller-numbered circles and avoid bigger ones to survive!
  • Currently I'm using SmartRandom plugin for random number but Now I want to replace it with build in Advance Random plugin.

    in the screenshot there are 2 variable initialRow and initialCol. row.Next and col.Next is SmartRandom plugin which gives me random numbers. I can't duplicate Advance Random plugin and by expression AdvancedRandom.Permutation(loopindex) I'll get same value in both initialRow and initialCol. is there any way?

    Tagged:

  • Use separate permutation tables or seeds

    Use an offset to your permutation index value.

  • How separate permutation tables or seeds. when I tried there can be only one permutation table at a time. I also tried different seed. but either I don't know how to use or it never worked for me.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • So you basically need to process all cells on the board in a random order, correct?

    You can create a single permutation table for all cells.

    -> AdvancedRandom: Create permutation with board_size^2 values starting at 0
    
    + System: For "n" from 0 to board_size^2
    -> System: Set randomRow to AdvancedRandom.Permutation( loopindex("n"))%board_size
    -> System: Set randomColumn to int(AdvancedRandom.Permutation( loopindex("n"))÷board_size)
    
    
Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)