An example operation may include one or more of a computer generating an output of a variable random function applied to a public key of a user of a blockchain and a hash of the blockchain block, the computer determining a function f that gives a number x in [0,1] to each of a plurality of transactions on the block based on the output, and the computer ordering the transactions, using the function f, within the block.