I was wondering about the following: Lets assume that you have a function like $f(x)=x$ and you measure your function by taking an integral from $0$ to $1$, which gives you:
$$ \int_{0}^{1} x \; {\rm d}x = \frac{1}{2} $$
Ok, now let's imagine that we randomly reorder in a unique way the function. I mean, once you've reordered it, every input $x \in [0, 1]$ will produce another value randomly from $f([0,1])$, but once this value $f(x)$ has been assigned to $x$, the function has been defined at x, which means that next time you evaluate $f$ at $x$, you will get the same $f(x)$ previously defined. And important: the function is bijective in our case. So let's call our randomly reordered function $f^R$. Here there is a "summary figure":

So, my intuition says that:
- The set of points that belong to $f^R$ is dense in $\mathbb{R}^2$ at least for the square depicted in the figure.
- The integral from $0$ to $1$ should be the same and the are of this function between $0$ and $1$ should be $\frac{1}{2}$.
- This is not a strong intuition, but a doubt: is $f^R$ continuous?
Am I right with my intuition? There exist any measure that allows to measure this set and assign it 1/2?
Many thanks in advance!!
EDIT: @Shai user has pointed something very disturbing. If we randomly reorder f, we could end up the curve $f^R = (x, x^2)$, so the area below the curve would be less than 1/2. This could be solved saying that we set a random reordered $f^R$ so any point $P \in [0,1]^2$ is an accumulation point of the points $Q = (x, f^R(x)) \in f^R$, which implies that the function is dense in $[0, 1]^2$ (by $[0, 1]^2$ I mean the square depicted in the figure).
To be clear, my impression is that in the main part of your question you are asking about the family $F$ of bijections $[0,1] \to [0,1]$ with the particular property that the `graph' of each function is dense in $[0,1]^2$; ie, your '$1$st intuition' point is assumed to hold. Demonstrating the existence of such functions requires the axiom of choice, since no direct construction is possible.
In answer to part 3, $f^R$ is certainly not continuous if its graph has dense image, which makes consideration of bijections such as $x \mapsto x$ and $x \mapsto x^2$ somewhat misleading.
To produce a 'random function' as you specify is difficult, because there is no obvious canonical probability measure on $F$ or a natural random process which we could use to generate it. On the other hand it may be possible to discuss a generic member of $F$. The most sensible way to do this is to endow $F$ with the uniform (or sup) metric: $$d(f,g):=sup_{x \in [0,1]}|f(x)-g(x)|,$$ so that discussion of dense sets makes sense, and to work from there.
Lebesgue-measurability: for such functions, the inverse image of any interval of positive length less than $1$ is an uncountable dense subset of $[0,1]$ with empty interior (consider any cross-section of the graph of positive width). Determining if such sets are measurable is difficult in general, since there are constructions which go either way (that's 3 separate links) since we have already assumed the axiom of choice. I am yet to see a discussion which quantifies which type of subset is 'more common' in the sense described above. I suspect someone with better knowledge of the Baire Category Theorem than me might be able to contribute some ideas.
There is, however, an interpretation of your question which has a more or less satisfying answer relative to your intuition... Instead of the Lebesgue measure, we can discuss the 'measure induced by $f$'. That is, we define a new $\sigma$-algebra $\mathcal{F}$ on $[0,1]$ by making $A \subset [0,1]$ measurable if and only if $f^{-1}(A)$ is Lebesgue measurable, and assign values of a measure $\mu$ by $\mu(A) = \mu^{\mathrm{Leb}}(f^{-1}(A))$.
What this does is to put aside the natural order and intervals in $[0,1]$ and treats the set as simply a mixed up collection of points. This trivially makes $f$ into a measure space isomorphism, which I think ensures that $\int f^{-1}\, d\mu = \int x \,d\mu^{\mathrm{Leb}}(x) = 1/2$. (Integrating $f$ rather than $f^{-1}$ will still not usually be possible since we can't treat the image space as a subspace of $\mathbb{R}$ and retain the numerical values of the points; the problem of Lebesgue measurability still remains). Perhaps this is close enough...
As a side note, this idea is much more effective for defining canonical measures on less familiar spaces, and falls flat here. My intuition is that just as most continuous functions are non-differentiable almost everywhere, 'most' of your random functions will be non-measurable and certainly non-integrable.