def shaped_random(shape, xp=cupy, dtype=numpy.float32, scale=10, seed=0):
    numpy.random.seed(seed)
    if numpy.dtype(dtype).type == numpy.bool_:
        return xp.asarray(numpy.random.randint(2, size=shape).astype(dtype))
    else:
        return xp.asarray((numpy.random.rand(*shape) * scale).astype(dtype))
Create a new queue from attributes
dataset/ETHPy150Open pfnet/chainer/cupy/testing/helper.py/shaped_random--crossover with--dataset/ETHPy150Open openstack/python-openstacksdk/openstack/message/v1/_proxy.py/Proxy.create_queue