# randomly placing tokens on a board

**URL:** <https://forum.vassalengine.org/t/randomly-placing-tokens-on-a-board/4216>\
**Category:** Module Design\
**Created:** [August 27, 2011, 9:56pm UTC](https://forum.vassalengine.org/t/randomly-placing-tokens-on-a-board/4216 "2011-08-27T21:56:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Tim\_M](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/tim_m/32/2_2.png) [@Tim\_M](https://forum.vassalengine.org/u/Tim_M)\
**Post date:** [August 27, 2011, 10:11pm UTC](https://forum.vassalengine.org/t/randomly-placing-tokens-on-a-board/4216/2 "2011-08-27T22:11:22Z")

</div>

Yes, see  
[https://forum.vassalengine.org/t/a-deck-question/1476/1](https://forum.vassalengine.org/t/a-deck-question/1476/1)

This is what you want to do in principle. Although this is talking about  
dealing a deck of cards it is exactly the same idea of how to do it

-----Original Message-----  
From: [messages-bounces@vassalengine.org](mailto:messages-bounces@vassalengine.org)  
[[mailto:messages-bounces@vassalengine.org](mailto:messages-bounces@vassalengine.org)] On Behalf Of mustangblaster  
Sent: Saturday, August 27, 2011 4:59 PM  
To: [messages@vassalengine.org](mailto:messages@vassalengine.org)  
Subject: [messages] Edit: [Module Design] randomly placing tokens on a board

[This message has been edited.]

Hello,

I’m new to the vassal engine, so any help would be much appreciated.

I’m looking for a script whereby the engine places random type of  
resources (wood, stone, gold, etc.) from a common pool on random spaces  
of a predefined part of the board. The number of resources of each type  
is limited within the pool. Say, there are 7 wood, 5 stone and 3 gold  
altogether in there. Is there any way to achieve this result with  
VASSAL?

Thank you for your time.

* * *

Read this topic online here:  
[https://forum.vassalengine.org/t/randomly-placing-tokens-on-a-board/4216/1](https://forum.vassalengine.org/t/randomly-placing-tokens-on-a-board/4216/1)

---

_[View the full topic](https://forum.vassalengine.org/t/randomly-placing-tokens-on-a-board/4216)._
