Randomly generate triangle.

Signed-off-by: RyeYao <rye.y.cn@gmail.com>