# Random in calculated property

**URL:** <https://forum.vassalengine.org/t/random-in-calculated-property/9254>\
**Category:** Module Design\
**Created:** [January 29, 2018, 12:25pm UTC](https://forum.vassalengine.org/t/random-in-calculated-property/9254 "2018-01-29T12:25:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kerkael](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/k/8c91f0/32.png) [@kerkael](https://forum.vassalengine.org/u/kerkael)\
**Post date:** [January 29, 2018, 12:25pm UTC](https://forum.vassalengine.org/t/random-in-calculated-property/9254/1 "2018-01-29T12:25:39Z")

</div>

Hi all,

I can’t have this wor k : how to add a random number in a calculated property.  
I know how to use the dice result, like this : {GetProperty(“1d20\_result”)}.  
But this result won’t change until i roll the dice again !

How to make the random number generated in the value definition ?

I don’t want to add a sequence of operations like : click the button → rolls the dice → calculated the property depending on the dice.

There must be a specific syntax to call for the dice to be rolled. Please ?

thx for your help
