Efficient Design of Neural Networks with Random Weights